diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-29 20:04:09 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-29 20:04:09 +0000 |
commit | bcda3ebaef6d0b9db8f88bccecd5704f53663b59 (patch) | |
tree | a0a550ed4dfd8d55eedcd1448a51b07a95fec980 /src | |
parent | 7118c6177d2bdcb9950a9ff991e422ffc6baff72 (diff) | |
download | tor-bcda3ebaef6d0b9db8f88bccecd5704f53663b59.tar tor-bcda3ebaef6d0b9db8f88bccecd5704f53663b59.tar.gz |
bugfix: we were closing socks-request connections immediately, rather
than flushing them, if they were timing out before we marked them
svn:r1366
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index eeb0501b1..583a96957 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -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; } |