Browse Source

if the directory client hangs up before getting the directory,
then give up on him


svn:r1238

Roger Dingledine 21 years ago
parent
commit
c362ed877d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/or/directory.c

+ 1 - 0
src/or/directory.c

@@ -144,6 +144,7 @@ int connection_dir_process_inbuf(connection_t *conn) {
         return 0;
       default:
         log_fn(LOG_INFO,"conn reached eof, not reading. Closing.");
+        connection_close_immediate(conn); /* it was an error; give up on flushing */
         connection_mark_for_close(conn,0);
         return -1;
     }