Skip to content

Commit

Permalink
Fix slow speed on Linux #24 (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
BestPig authored Jun 5, 2021
1 parent 3aed5e6 commit 4740e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pcaploop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int uv_pcap_open_live(
LLOG(LLOG_DEBUG, "open %s fail: pcap_create", d->name);
return -1;
}
if (pcap_set_timeout(dev, 500)) {
if (pcap_set_timeout(dev, 0)) {
LLOG(LLOG_DEBUG, "open %s fail: pcap_set_timeout", d->name);
goto fail;
}
Expand Down

0 comments on commit 4740e90

Please sign in to comment.