소스 검색

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


svn:r1238

Roger Dingledine 22 년 전
부모
커밋
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;
     }