aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/directory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 698e752d72..6816d5b405 100644
--- a/src/or/directory.c
+++ b/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;
}