only expire wedged dir conns that haven't already been expired

svn:r1676
This commit is contained in:
Roger Dingledine 2004-04-20 17:27:54 +00:00
parent 06a60c4fbb
commit 3c250a2fed

View File

@ -307,6 +307,7 @@ static void run_connection_housekeeping(int i, time_t now) {
connection_t *conn = connection_array[i];
if(conn->type == CONN_TYPE_DIR &&
!conn->marked_for_close &&
conn->timestamp_lastwritten + 5*60 < now) {
log_fn(LOG_WARN,"Expiring wedged directory conn (purpose %d)", conn->purpose);
connection_mark_for_close(conn,0);