mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
Remove an unhelpful/optimistic DNS_Mgr optimization
DNS_Mgr is always "idle", so Process() is always called when the fd signals there's really something ready (except when flushing at termination-time), so checking whether all pending request maps are empty within Process() doesn't help much. If they are empty, but there's somehow something to pull off the socket, the main loop is just going to keep trying to call Process() until it gets read (which would be bad if it's preventing another IOSource from getting real work done).
This commit is contained in:
parent
5bb2a6b1c0
commit
fd11c63efe
1 changed files with 0 additions and 3 deletions
|
@ -1418,9 +1418,6 @@ void DNS_Mgr::DoProcess()
|
||||||
delete req;
|
delete req;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( asyncs_addrs.size() == 0 && asyncs_names.size() == 0 && asyncs_texts.size() == 0 )
|
|
||||||
return;
|
|
||||||
|
|
||||||
if ( AnswerAvailable(0) <= 0 )
|
if ( AnswerAvailable(0) <= 0 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue