[or-cvs] bugfix: we were closing socks-request connections immediate...

Roger Dingledine arma at seul.org
Mon Mar 29 20:04:12 UTC 2004


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;
 }
 



More information about the tor-commits mailing list