Skip to content

Commit

Permalink
Tune to poll timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 committed Apr 12, 2024
1 parent dcaf621 commit 2a7d4cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dataplane/forwarding/fwdport/ports/kernel.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (p *kernelPort) process() {
default:
d, _, err := p.handle.ReadPacketData()
if err == afpacket.ErrTimeout || err == afpacket.ErrPoll { // Don't log this error as it is very spammy.
time.Sleep(1 * time.Microsecond) // avoid busy looping
time.Sleep(1 * time.Millisecond) // TODO: Tune this parameter, avoid busy looping.
continue
}
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions dataplane/standalone/pkthandler/lucius-pkthandler.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Description=Lucius Packet Handler
Wants=network-online.target
After=network-online.target
# Infinite restarts when starting
StartLimitIntervalSec=0

[Service]
Type=exec
Expand Down

0 comments on commit 2a7d4cb

Please sign in to comment.