]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix: if a dnsworker dies, remember that.
authorRoger Dingledine <arma@torproject.org>
Wed, 13 Aug 2003 22:38:46 +0000 (22:38 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 13 Aug 2003 22:38:46 +0000 (22:38 +0000)
svn:r396

src/or/dns.c

index 643c61cc6db438eb78d915eb82d2de4d4dcfc0d4..95714753442681b9be7a395c2bec1076c42a9f7e 100644 (file)
@@ -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;
   }