From bcda3ebaef6d0b9db8f88bccecd5704f53663b59 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 --- src/or/connection.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/or/connection.c b/src/or/connection.c index eeb0501b1d..583a969572 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; } -- 2.47.3