Revert "don't set pcap timeout, to prevent cpu churn"
This reverts commit b5df59660f.
See issue #81
This commit is contained in:
1 parent
b5df59660f
commit
d80a5c8dff
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