mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Remove obsolete DNS_Mgr::asyncs_timeouts
This commit is contained in:
parent
aced9c3e56
commit
75d07c021e
2 changed files with 1 additions and 6 deletions
|
@ -1307,7 +1307,6 @@ void DNS_Mgr::IssueAsyncRequests()
|
||||||
|
|
||||||
dns_req->MakeRequest(channel, this);
|
dns_req->MakeRequest(channel, this);
|
||||||
|
|
||||||
asyncs_timeouts.push(req);
|
|
||||||
++asyncs_pending;
|
++asyncs_pending;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1401,7 +1400,7 @@ void DNS_Mgr::Flush()
|
||||||
|
|
||||||
double DNS_Mgr::GetNextTimeout()
|
double DNS_Mgr::GetNextTimeout()
|
||||||
{
|
{
|
||||||
if ( asyncs_timeouts.empty() )
|
if ( asyncs_pending == 0 )
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return run_state::network_time + DNS_TIMEOUT;
|
return run_state::network_time + DNS_TIMEOUT;
|
||||||
|
|
|
@ -331,10 +331,6 @@ protected:
|
||||||
using QueuedList = std::list<AsyncRequest*>;
|
using QueuedList = std::list<AsyncRequest*>;
|
||||||
QueuedList asyncs_queued;
|
QueuedList asyncs_queued;
|
||||||
|
|
||||||
using TimeoutQueue =
|
|
||||||
std::priority_queue<AsyncRequest*, std::vector<AsyncRequest*>, AsyncRequestCompare>;
|
|
||||||
TimeoutQueue asyncs_timeouts;
|
|
||||||
|
|
||||||
unsigned long num_requests = 0;
|
unsigned long num_requests = 0;
|
||||||
unsigned long successful = 0;
|
unsigned long successful = 0;
|
||||||
unsigned long failed = 0;
|
unsigned long failed = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue