mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Make TimerMgr an IOSource
- This allows the loop to check what the next timeout is and use that as the basis for the timeout of the poll - This commit also removes the TimerMgr::Tag type, since it causes a name clash with other code in IOSource
This commit is contained in:
parent
4fa3e4b9b4
commit
92bde61b78
7 changed files with 101 additions and 39 deletions
|
@ -115,8 +115,8 @@ Connection::Connection(NetSessions* s, const ConnIDKey& k, double t, const ConnI
|
|||
++current_connections;
|
||||
++total_connections;
|
||||
|
||||
TimerMgr::Tag* tag = current_iosrc->GetCurrentTag();
|
||||
conn_timer_mgr = tag ? new TimerMgr::Tag(*tag) : 0;
|
||||
std::string* tag = current_iosrc->GetCurrentTag();
|
||||
conn_timer_mgr = tag ? new std::string(*tag) : nullptr;
|
||||
|
||||
if ( arg_encap )
|
||||
encapsulation = new EncapsulationStack(*arg_encap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue