aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-29 20:04:09 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-29 20:04:09 +0000
commitbcda3ebaef6d0b9db8f88bccecd5704f53663b59 (patch)
treea0a550ed4dfd8d55eedcd1448a51b07a95fec980 /src
parent7118c6177d2bdcb9950a9ff991e422ffc6baff72 (diff)
downloadtor-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.c6
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;
}