diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-06 05:09:33 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-06 05:09:33 +0000 |
commit | c362ed877dc3e507b806594e35b4240326e6e8d5 (patch) | |
tree | 5ecb1c0df8e26d194d1e5e3a7606bb2e1c7c3645 | |
parent | 044bda2f06383cea6ddae19767543d5d58c97648 (diff) | |
download | tor-c362ed877dc3e507b806594e35b4240326e6e8d5.tar.gz tor-c362ed877dc3e507b806594e35b4240326e6e8d5.zip |
if the directory client hangs up before getting the directory,
then give up on him
svn:r1238
-rw-r--r-- | src/or/directory.c | 1 |
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; } |