mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
bugfix: if a dnsworker dies, remember that.
svn:r396
This commit is contained in:
parent
e4957f8c59
commit
e1f2693d05
@ -291,8 +291,11 @@ int connection_dns_process_inbuf(connection_t *conn) {
|
||||
|
||||
if(conn->inbuf_reached_eof) {
|
||||
log(LOG_ERR,"connection_dnsworker_process_inbuf(): Read eof. Worker dying.");
|
||||
if(conn->state == DNSWORKER_STATE_BUSY)
|
||||
if(conn->state == DNSWORKER_STATE_BUSY) {
|
||||
dns_cancel_pending_resolve(conn->address, NULL);
|
||||
num_workers_busy--;
|
||||
}
|
||||
num_workers--;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user