mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
iosource: Make poll intervals configurable
This probably should not be changed by users, but it's useful for testing and experimentation rather than needing to recompile. Processing 100 packets without checking an FD based IO source can actually mean that FD based sources are never checked during a read of a very small pcap...
This commit is contained in:
parent
5f1a85803a
commit
46c432dc8b
4 changed files with 35 additions and 6 deletions
|
@ -216,7 +216,7 @@ private:
|
|||
int zero_timeout_count = 0;
|
||||
WakeupHandler* wakeup = nullptr;
|
||||
int poll_counter = 0;
|
||||
int poll_interval = 100;
|
||||
int poll_interval = 0; // Set in InitPostScript() based on const value.
|
||||
|
||||
int event_queue = -1;
|
||||
std::map<int, IOSource*> fd_map;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue