[tor-commits] [tor/master] Revert junk accidentally included with "start folding in the changes entries"

nickm at torproject.org nickm at torproject.org
Mon Jan 14 19:45:50 UTC 2013


commit 47122d1d25941da42c550a9f1eded6c883cda39b
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Jan 14 14:41:59 2013 -0500

    Revert junk accidentally included with "start folding in the changes entries"
    
    Looks like Roger's debugging code wanted to take a tour of the world
    outside his sandbox.
    
    This reverts part of commit 19d37202362c0298ae2f3954b0065ccfcef0dbda.
---
 src/or/connection.c |    3 +--
 src/or/relay.c      |    8 --------
 2 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/src/or/connection.c b/src/or/connection.c
index 42ff7e1..740462e 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1245,7 +1245,6 @@ connection_handle_listener_read(connection_t *conn, int new_type)
   if (!SOCKET_OK(news)) { /* accept() error */
     int e = tor_socket_errno(conn->s);
     if (ERRNO_IS_ACCEPT_EAGAIN(e)) {
-      log_notice(LD_APP, "he hung up before we could accept(). that's fine.");
       return 0; /* he hung up before we could accept(). that's fine. */
     } else if (ERRNO_IS_ACCEPT_RESOURCE_LIMIT(e)) {
       warn_too_many_conns();
@@ -1257,7 +1256,7 @@ connection_handle_listener_read(connection_t *conn, int new_type)
     connection_mark_for_close(conn);
     return -1;
   }
-  log_notice(LD_NET,
+  log_debug(LD_NET,
             "Connection accepted on socket %d (child of fd %d).",
             (int)news,(int)conn->s);
 
diff --git a/src/or/relay.c b/src/or/relay.c
index 874aade..a942e44 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -1619,14 +1619,6 @@ connection_edge_package_raw_inbuf(edge_connection_t *conn, int package_partial,
             conn->base_.s,
             (int)length, (int)connection_get_inbuf_len(TO_CONN(conn)));
 
-  if (conn->base_.type == CONN_TYPE_AP) {
-    char *text = tor_memdup(payload, length+1);
-    text[length] = 0;
-    log_notice(LD_APP, "Incoming socks text (%d):===\n%s\n===",
-               conn->base_.s, text);
-    tor_free(text);
-  }
-
   if (sending_optimistically && !sending_from_optimistic) {
     /* This is new optimistic data; remember it in case we need to detach and
        retry */



More information about the tor-commits mailing list