mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
Delete/timeout pending DNS requests during shutdown
Primarily, this change prevents the pending requests showing up as memory leaks.
This commit is contained in:
parent
2fbcf23f76
commit
8cdcfad6d2
1 changed files with 1 additions and 1 deletions
|
@ -1404,7 +1404,7 @@ void DNS_Mgr::DoProcess()
|
|||
{
|
||||
AsyncRequest* req = asyncs_timeouts.top();
|
||||
|
||||
if ( req->time + DNS_TIMEOUT > current_time() )
|
||||
if ( req->time + DNS_TIMEOUT > current_time() && ! terminating )
|
||||
break;
|
||||
|
||||
if ( ! req->processed )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue