]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix: we were closing socks-request connections immediately, rather
authorRoger Dingledine <arma@torproject.org>
Mon, 29 Mar 2004 20:04:09 +0000 (20:04 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 29 Mar 2004 20:04:09 +0000 (20:04 +0000)
than flushing them, if they were timing out before we marked them

svn:r1366

src/or/connection.c

index eeb0501b1d1831b8011de6986383fcc00c2a62d8..583a96957271b725776adf70d69199728fcc71fa 100644 (file)
@@ -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;
 }