Do not timeout unknowns if still waiting for blacklist lookup.

This fixes inability to connect if all DNS queries
time out and any blacklists are defined.
This commit is contained in:
Jilles Tjoelker 2008-06-20 01:49:53 +02:00
parent f8a8d16e52
commit 6bb4fb832b

View file

@ -373,6 +373,11 @@ check_unknowns_list(rb_dlink_list * list)
if(IsDead(client_p) || IsClosing(client_p)) if(IsDead(client_p) || IsClosing(client_p))
continue; continue;
/* still has DNSbls to validate against */
if(client_p->preClient != NULL &&
rb_dlink_list_length(&client_p->preClient->dnsbl_queries) > 0)
continue;
/* /*
* Check UNKNOWN connections - if they have been in this state * Check UNKNOWN connections - if they have been in this state
* for > 30s, close them. * for > 30s, close them.