mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
give wedged dir conns a last chance to flush
svn:r1671
This commit is contained in:
parent
f1e44399d3
commit
d40e9f453f
1 changed files with 1 additions and 0 deletions
|
@ -310,6 +310,7 @@ static void run_connection_housekeeping(int i, time_t now) {
|
||||||
conn->timestamp_created + 5*60 < now) {
|
conn->timestamp_created + 5*60 < now) {
|
||||||
log_fn(LOG_INFO,"Expiring wedged directory conn (purpose %d)", conn->purpose);
|
log_fn(LOG_INFO,"Expiring wedged directory conn (purpose %d)", conn->purpose);
|
||||||
connection_mark_for_close(conn,0);
|
connection_mark_for_close(conn,0);
|
||||||
|
conn->hold_open_until_flushed = 1; /* give it a last chance */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue