From cd05ad025ee026fb37b71af5af35ff5de621a240 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 29 Mar 2004 20:04:09 +0000 Subject: [PATCH] bugfix: we were closing socks-request connections immediately, rather than flushing them, if they were timing out before we marked them svn:r1366 --- trunk/src/or/connection.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trunk/src/or/connection.c b/trunk/src/or/connection.c index eeb0501b1d..583a969572 100644 --- a/trunk/src/or/connection.c +++ b/trunk/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; }