Просмотр исходного кода

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


svn:r1238

Roger Dingledine 22 лет назад
Родитель
Сommit
c362ed877d
1 измененных файлов с 1 добавлено и 0 удалено
  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;
     }