[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r9850: When creating a circuit via the controller, send a 'launched (in tor/branches/tor-0_1_2-patches: . src/or)



Author: arma
Date: 2007-03-16 23:24:22 -0400 (Fri, 16 Mar 2007)
New Revision: 9850

Modified:
   tor/branches/tor-0_1_2-patches/ChangeLog
   tor/branches/tor-0_1_2-patches/src/or/control.c
Log:
When creating a circuit via the controller, send a 'launched'
event when we're done, so we follow the spec better.


Modified: tor/branches/tor-0_1_2-patches/ChangeLog
===================================================================
--- tor/branches/tor-0_1_2-patches/ChangeLog	2007-03-16 18:40:47 UTC (rev 9849)
+++ tor/branches/tor-0_1_2-patches/ChangeLog	2007-03-17 03:24:22 UTC (rev 9850)
@@ -5,7 +5,11 @@
       begin_dir cells). It only triggered when the same connection was
       serving other data at the same time. Reported by seeess.
 
+  o Minor bugfixes:
+    - When creating a circuit via the controller, send a 'launched'
+      event when we're done, so we follow the spec better.
 
+
 Changes in version 0.1.2.11-rc - 2007-03-15
   o Minor bugfixes (controller), reported by daejees:
     - Correct the control spec to match how the code actually responds

Modified: tor/branches/tor-0_1_2-patches/src/or/control.c
===================================================================
--- tor/branches/tor-0_1_2-patches/src/or/control.c	2007-03-16 18:40:47 UTC (rev 9849)
+++ tor/branches/tor-0_1_2-patches/src/or/control.c	2007-03-17 03:24:22 UTC (rev 9850)
@@ -2192,6 +2192,8 @@
     connection_printf_to_buf(conn, "250 EXTENDED %lu\r\n",
                              (unsigned long)circ->global_identifier);
   }
+  if (zero_circ) /* send a 'launched' event, for completeness */
+    control_event_circuit_status(circ, CIRC_EVENT_LAUNCHED, 0);
  done:
   SMARTLIST_FOREACH(router_nicknames, char *, n, tor_free(n));
   smartlist_free(router_nicknames);