mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
only expire wedged dir conns that haven't already been expired
svn:r1676
This commit is contained in:
parent
06a60c4fbb
commit
3c250a2fed
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user