[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] bugfix: we were closing socks-request connections immediate...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] bugfix: we were closing socks-request connections immediate...
- From: arma@seul.org (Roger Dingledine)
- Date: Mon, 29 Mar 2004 15:04:12 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Mon, 29 Mar 2004 15:04:33 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
connection.c
Log Message:
bugfix: we were closing socks-request connections immediately, rather
than flushing them, if they were timing out before we marked them
Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection.c,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -d -r1.188 -r1.189
--- connection.c 28 Mar 2004 09:48:21 -0000 1.188
+++ connection.c 29 Mar 2004 20:04:09 -0000 1.189
@@ -224,6 +224,12 @@
;
}
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;
}