[or-cvs] mark a rend circ dirty when you attach to it

Roger Dingledine arma at seul.org
Wed Apr 7 19:14:48 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	connection_edge.c 
Log Message:
mark a rend circ dirty when you attach to it


Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_edge.c,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -d -r1.146 -r1.147
--- connection_edge.c	6 Apr 2004 22:23:12 -0000	1.146
+++ connection_edge.c	7 Apr 2004 19:14:45 -0000	1.147
@@ -915,11 +915,14 @@
          rendcirc->purpose == CIRCUIT_PURPOSE_C_REND_READY) {
         /* then we know !pending_final_cpath, from above */
         log_fn(LOG_INFO,"intro and rend circs are both ready. introducing.");
+        /* this call marks introcirc for close */
         if(rend_client_send_introduction(introcirc, rendcirc) < 0) {
           return -1;
         }
         /* now attach conn to rendcirc */
         link_apconn_to_circ(conn, rendcirc);
+        if(!rendcirc->timestamp_dirty)
+          rendcirc->timestamp_dirty = time(NULL);
         return 1;
       }
     }



More information about the tor-commits mailing list