Procházet zdrojové kódy

Jan 18 18:42:05.671 [debug] Encountered eof
Jan 18 18:42:05.671 [debug] Got data, not eof. Leaving on inbuf.

that's not very smart.


svn:r5843

Roger Dingledine před 20 roky
rodič
revize
f6084cf831
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/or/directory.c

+ 2 - 1
src/or/directory.c

@@ -1231,7 +1231,8 @@ connection_dir_process_inbuf(connection_t *conn)
 
   /* XXX for READ states, might want to make sure inbuf isn't too big */
 
-  debug(LD_HTTP,"Got data, not eof. Leaving on inbuf.");
+  if (!conn->inbuf_reached_eof)
+    debug(LD_HTTP,"Got data, not eof. Leaving on inbuf.");
   return 0;
 }