Bläddra i källkod

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 20 år sedan
förälder
incheckning
f6084cf831
1 ändrade filer med 2 tillägg och 1 borttagningar
  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;
 }