mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 05:03:43 +01:00
bugfix: we were closing socks-request connections immediately, rather
than flushing them, if they were timing out before we marked them svn:r1366
This commit is contained in:
parent
7118c6177d
commit
bcda3ebaef
@ -224,6 +224,12 @@ _connection_mark_for_close(connection_t *conn, char reason)
|
||||
;
|
||||
}
|
||||
conn->marked_for_close = 1;
|
||||
|
||||
/* in case we're going to be held-open-til-flushed, reset
|
||||
* the number of seconds since last successful write, so
|
||||
* we get our whole 15 seconds */
|
||||
conn->timestamp_lastwritten = time(NULL);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user