mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
Remove dead code from DNS_Mgr
This commit is contained in:
parent
6db576195c
commit
5bccb44ad4
2 changed files with 5 additions and 5 deletions
|
@ -1369,7 +1369,7 @@ void DNS_Mgr::CheckAsyncHostRequest(const char* host, bool timeout)
|
||||||
|
|
||||||
void DNS_Mgr::Flush()
|
void DNS_Mgr::Flush()
|
||||||
{
|
{
|
||||||
DoProcess(false);
|
DoProcess();
|
||||||
|
|
||||||
HostMap::iterator it;
|
HostMap::iterator it;
|
||||||
for ( it = host_mappings.begin(); it != host_mappings.end(); ++it )
|
for ( it = host_mappings.begin(); it != host_mappings.end(); ++it )
|
||||||
|
@ -1391,11 +1391,11 @@ void DNS_Mgr::Flush()
|
||||||
|
|
||||||
void DNS_Mgr::Process()
|
void DNS_Mgr::Process()
|
||||||
{
|
{
|
||||||
DoProcess(false);
|
DoProcess();
|
||||||
next_timestamp = -1.0;
|
next_timestamp = -1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DNS_Mgr::DoProcess(bool flush)
|
void DNS_Mgr::DoProcess()
|
||||||
{
|
{
|
||||||
if ( ! nb_dns )
|
if ( ! nb_dns )
|
||||||
return;
|
return;
|
||||||
|
@ -1404,7 +1404,7 @@ void DNS_Mgr::DoProcess(bool flush)
|
||||||
{
|
{
|
||||||
AsyncRequest* req = asyncs_timeouts.top();
|
AsyncRequest* req = asyncs_timeouts.top();
|
||||||
|
|
||||||
if ( req->time + DNS_TIMEOUT > current_time() || flush )
|
if ( req->time + DNS_TIMEOUT > current_time() )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if ( req->IsAddrReq() )
|
if ( req->IsAddrReq() )
|
||||||
|
|
|
@ -132,7 +132,7 @@ protected:
|
||||||
void CheckAsyncTextRequest(const char* host, bool timeout);
|
void CheckAsyncTextRequest(const char* host, bool timeout);
|
||||||
|
|
||||||
// Process outstanding requests.
|
// Process outstanding requests.
|
||||||
void DoProcess(bool flush);
|
void DoProcess();
|
||||||
|
|
||||||
// IOSource interface.
|
// IOSource interface.
|
||||||
void GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
|
void GetFds(iosource::FD_Set* read, iosource::FD_Set* write,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue