if the directory client hangs up before getting the directory,

then give up on him


svn:r1238
This commit is contained in:
Roger Dingledine 2004-03-06 05:09:33 +00:00
parent 044bda2f06
commit c362ed877d

View 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;
}