From: Roger Dingledine Date: Tue, 6 Dec 2005 23:43:52 +0000 (+0000) Subject: tell the controller about new .onion streams too. X-Git-Tag: tor-0.1.1.10-alpha~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0ffa34219f7899d60b3f8a41c9674b1d3a52fe9;p=thirdparty%2Ftor.git tell the controller about new .onion streams too. svn:r5520 --- diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 685721f282..f376d3df80 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -1116,9 +1116,7 @@ connection_ap_handshake_process_socks(connection_t *conn) info(LD_REND, "Unknown descriptor %s. Fetching.", safe_str(conn->rend_query)); rend_client_refetch_renddesc(conn->rend_query); - return 0; - } - if (r>0) { + } else { /* r > 0 */ #define NUM_SECONDS_BEFORE_REFETCH (60*15) if (time(NULL) - entry->received < NUM_SECONDS_BEFORE_REFETCH) { conn->state = AP_CONN_STATE_CIRCUIT_WAIT; @@ -1127,15 +1125,15 @@ connection_ap_handshake_process_socks(connection_t *conn) connection_mark_unattached_ap(conn, END_STREAM_REASON_CANT_ATTACH); return -1; } - return 0; } else { conn->state = AP_CONN_STATE_RENDDESC_WAIT; info(LD_REND, "Stale descriptor %s. Refetching.", safe_str(conn->rend_query)); rend_client_refetch_renddesc(conn->rend_query); - return 0; } } + control_event_stream_status(conn, STREAM_EVENT_NEW); + return 0; } return 0; /* unreached but keeps the compiler happy */ }