From e65425758083ae2368fa4b5b87bf3e17b707e083 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 6 Mar 2004 05:09:33 +0000 Subject: [PATCH] if the directory client hangs up before getting the directory, then give up on him svn:r1238 --- trunk/src/or/directory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/src/or/directory.c b/trunk/src/or/directory.c index 698e752d72..6816d5b405 100644 --- a/trunk/src/or/directory.c +++ b/trunk/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; }