[or-cvs] bugfix: if a dnsworker dies, remember that.
Roger Dingledine
arma at seul.org
Wed Aug 13 22:38:49 UTC 2003
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
dns.c
Log Message:
bugfix: if a dnsworker dies, remember that.
Index: dns.c
===================================================================
RCS file: /home/or/cvsroot/src/or/dns.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- dns.c 12 Aug 2003 07:43:15 -0000 1.19
+++ dns.c 13 Aug 2003 22:38:46 -0000 1.20
@@ -291,8 +291,11 @@
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;
}
More information about the tor-commits
mailing list