]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
if the directory client hangs up before getting the directory,
authorRoger Dingledine <arma@torproject.org>
Sat, 6 Mar 2004 05:09:33 +0000 (05:09 +0000)
committerRoger Dingledine <arma@torproject.org>
Sat, 6 Mar 2004 05:09:33 +0000 (05:09 +0000)
then give up on him

svn:r1238

src/or/directory.c

index 698e752d72ad67e2dcb145a3af68f986c1692c4e..6816d5b40518b4934a585be78e74c9b1f429f90e 100644 (file)
@@ -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;
     }