]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
more cleanups; getting closer
authorRoger Dingledine <arma@torproject.org>
Mon, 26 Feb 2007 05:36:02 +0000 (05:36 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 26 Feb 2007 05:36:02 +0000 (05:36 +0000)
svn:r9655

ChangeLog
doc/TODO
doc/spec/control-spec.txt
src/common/compat.c
src/common/container.h
src/or/directory.c
src/or/main.c
src/or/relay.c
src/or/router.c

index 03732be3403671921a07cb5d9131cda760219ce5..8fbe85494d407ee0c25b777c5fec9d81863d1514 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,12 +6,16 @@ Changes in version 0.1.2.8-rc - 2007-02-??
       arguments: don't try to load NT service functions from advapi32.dll
       except when we need them. (Bug introduced in 0.1.2.7-alpha;
       resolves bug 389.)
+    - Fix a longstanding obscure crash bug that could occur when
+      we run out of DNS worker processes. (Resolves bug 390.)
+
+  o Major bugfixes (hidden services):
+    - Correctly detect whether hidden service descriptor downloads are
+      in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
 
   o Major bugfixes (accounting):
     - When we start during an accounting interval before it's time to wake
       up, remember to wake up at the correct time. (May fix bug 342.)
-    - Fix a longstanding obscure crash bug that could occur when
-      we run out of DNS worker processes. (Resolves bug 390.)
 
   o Minor bugfixes (controller):
     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
@@ -59,8 +63,6 @@ Changes in version 0.1.2.8-rc - 2007-02-??
       DNS request.
     - Build with recent libevents on platforms that do not define the
       nonstandard types "u_int8_t" and friends.
-    - Correctly detect whether hidden service descriptor downloads are
-      in-progress. (Fixes bug 399.)
 
   o Minor features (controller):
     - Warn the user when an application uses the obsolete binary v0
index 125db5d4c5ae63cc1ceea71aa6fdb13faf4c21b2..43b95879d8bb036dabcaadbd95966804b6319720 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -412,6 +412,8 @@ R - add d64 and fp64 along-side d and fp so people can paste status
       of edge_stream_t.
 
 Future version:
+  - LD_BUG log messages could prepend "Bug: " automatically, so we don't
+    have to try to remember to.
   - More consistent error checking in router_parse_entry_from_string().
     I can say "banana" as my bandwidthcapacity, and it won't even squeak.
   - Include the output of svn info/svk info output into the binary, so
index 0bfed15eeed9851d00a3ebd49ba8a570427c5853..ffa682df3dcf26893b3e687124143827a295fdbc 100644 (file)
@@ -896,11 +896,10 @@ $Id$
 
       Reason = "MISC" / "DONE" / "CONNECTREFUSED" /
                "IDENTITY" / "CONNECTRESET" / "TIMEOUT" / "NOROUTE" /
-               "IOERROR" 
+               "IOERROR"
 
   NumCircuits counts both established and pending circuits.
 
-
 4.1.4. Bandwidth used in the last second
 
   The syntax is:
index c9f5e85aba69ba342aa346ea777adcfdcfabe14f..7cf99a67ca4c44836e5336c3535a59ae5096d9c7 100644 (file)
@@ -990,7 +990,7 @@ typedef struct tor_pthread_data_t {
   void (*func)(void *);
   void *data;
 } tor_pthread_data_t;
-/** Given a tor_pthread_data_t <b>_data</b>, call _data-&gt;func(d-&gt;data);,
+/** Given a tor_pthread_data_t <b>_data</b>, call _data-&gt;func(d-&gt;data)
  * and free _data.  Used to make sure we can call functions the way pthread
  * expects. */
 static void *
index fbd3c6c603987d03e74cd7be5c6893179b5d4d6c..b07f92b636c6ab0c342251b0b6012c1c09c57d2e 100644 (file)
@@ -157,7 +157,7 @@ char *smartlist_join_strings2(smartlist_t *sl, const char *join,
     } } while (0)
 
 /** Helper: While in a SMARTLIST_FOREACH loop over the list <b>sl</b> indexed
- * with the variable <b>var</b>, remover the current element in a way that
+ * with the variable <b>var</b>, remove the current element in a way that
  * won't confuse the loop. */
 #define SMARTLIST_DEL_CURRENT(sl, var)          \
   do {                                          \
index 0dc2eccf0d859bd17eebba35609dcbba6223de97..d3e582ce7bfb76683a0b61aafa351e92b23234b0 100644 (file)
@@ -712,7 +712,8 @@ http_set_address_origin(const char *headers, connection_t *conn)
   if (fwd) {
     struct in_addr in;
     if (!tor_inet_aton(fwd, &in) || is_internal_IP(ntohl(in.s_addr), 0)) {
-      log_debug(LD_DIR, "Ignoring unrecognized or internal IP '%s'", fwd);
+      log_debug(LD_DIR, "Ignoring unrecognized or internal IP %s",
+                escaped(fwd));
       tor_free(fwd);
       return;
     }
index 551b3686b2a307925aa9b6d9797e6f674cd9229f..19e875c2c0cd1954af25d7b40fb0f6bb795ad340 100644 (file)
@@ -974,7 +974,8 @@ run_scheduled_events(time_t now)
   }
 }
 
-/** Libevent timer: used to invoke second_elapsed_callback() once per second. */
+/** Libevent timer: used to invoke second_elapsed_callback() once per
+ * second. */
 static struct event *timeout_event = NULL;
 /** Number of libevent errors in the last second: we die if we get too many. */
 static int n_libevent_errors = 0;
index e89937f4f5ddd66a3173d0b5089987679fb14b30..28d77cc4a538b7ceb15b50ba7c60e1d782e18f05 100644 (file)
@@ -829,9 +829,9 @@ connection_edge_process_end_not_open(
   return 0;
 }
 
-/** Helper: change the socks_request->address field on conn to the dotted-quad
- * representation of <b>new_addr</b> (given in host order), and send an
- * appropriate REMAP event. */
+/** Helper: change the socks_request-&gt;address field on conn to the
+ * dotted-quad representation of <b>new_addr</b> (given in host order),
+ * and send an appropriate REMAP event. */
 static void
 remap_event_helper(edge_connection_t *conn, uint32_t new_addr)
 {
@@ -873,7 +873,6 @@ connection_edge_process_relay_cell_not_open(
              "Got 'connected' while not in state connect_wait. Dropping.");
       return 0;
     }
-    // log_fn(LOG_INFO,"Connected! Notifying application.");
     conn->_base.state = AP_CONN_STATE_OPEN;
     log_info(LD_APP,"'connected' received after %d seconds.",
              (int)(time(NULL) - conn->_base.timestamp_lastread));
index 17c7581853966a81b52850d29486aff19983257e..0c0f4c986d4fe1d99b457fe137065894a5232fe7 100644 (file)
@@ -562,7 +562,7 @@ router_perform_bandwidth_test(int num_circs, time_t now)
   int cells_per_circuit = max_cells / num_circs;
   origin_circuit_t *circ = NULL;
 
-  log_notice(LD_OR,"Performing bandwidth self-test.");
+  log_notice(LD_OR,"Performing bandwidth self-test...done.");
   while ((circ = circuit_get_next_by_pk_and_purpose(circ, NULL,
                                               CIRCUIT_PURPOSE_TESTING))) {
     /* dump cells_per_circuit drop cells onto this circ */