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:
Jon Siwek 2019-05-01 22:55:43 -07:00
parent 5bb2a6b1c0
commit fd11c63efe

View file

@ -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;