mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
GH-1321: Prevent compounding of connection_status_update
event timers
Particularly for ICMP connections, a new timer got added every time a `connection` record was updated even if there was still a pending timer for that connection.
This commit is contained in:
parent
07c4662dc4
commit
a35cd2a726
4 changed files with 20 additions and 0 deletions
|
@ -322,6 +322,9 @@ void Connection::SetInactivityTimeout(double timeout)
|
|||
|
||||
void Connection::EnableStatusUpdateTimer()
|
||||
{
|
||||
if ( installed_status_timer )
|
||||
return;
|
||||
|
||||
if ( connection_status_update && zeek::detail::connection_status_update_interval )
|
||||
{
|
||||
ADD_TIMER(&Connection::StatusUpdateTimer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue