Procházet zdrojové kódy

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


svn:r1238

Roger Dingledine před 22 roky
rodič
revize
c362ed877d
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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;
     }