Revert "don't set pcap timeout, to prevent cpu churn"
This reverts commit b5df59660f.
This commit is contained in:
1 parent
d5acb312b4
commit
a4ffb4e45a
1 file changed
+3
@@ -40,6 +40,9 @@ func newPcapIO(ifName string, promisc bool, snaplen int, bufSz int) (handle *Pca
|
||||
if err = inactive.SetSnapLen(snaplen); err != nil {
|
||||
return
|
||||
}
|
||||
if err = inactive.SetTimeout(-1); err != nil {
|
||||
return
|
||||
}
|
||||
if err = inactive.SetImmediateMode(true); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user