mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Remove timeouts from remote communication loop.
The select() now blocks until there's work to do instead of relying on a small timeout value which can cause unproductive use of cpu cycles.
This commit is contained in:
parent
73cc81f44a
commit
675fba3fde
21 changed files with 364 additions and 58 deletions
|
@ -1067,9 +1067,10 @@ void EventPlayer::GotFunctionCall(const char* name, double time,
|
|||
// We don't replay function calls.
|
||||
}
|
||||
|
||||
void EventPlayer::GetFds(int* read, int* write, int* except)
|
||||
void EventPlayer::GetFds(std::vector<int>* read, std::vector<int>* write,
|
||||
std::vector<int>* except)
|
||||
{
|
||||
*read = fd;
|
||||
read->push_back(fd);
|
||||
}
|
||||
|
||||
double EventPlayer::NextTimestamp(double* local_network_time)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue