aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-18 06:35:31 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-18 06:35:31 +0000
commit7a7baf0552c39414426240c01f02b6dd7dde1326 (patch)
tree54ec0ddf5cf062aed273c133bbdeb93f51a7f654 /src/or/connection_edge.c
parentff261f78f218de7bf1d9777282024951921e9159 (diff)
downloadtor-7a7baf0552c39414426240c01f02b6dd7dde1326.tar
tor-7a7baf0552c39414426240c01f02b6dd7dde1326.tar.gz
expire dir connections that live for more than 5 minutes
svn:r1663
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 0bfca3987..fea18fc8f 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -757,7 +757,9 @@ static int connection_ap_handshake_process_socks(connection_t *conn) {
return connection_ap_handshake_attach_circuit(conn);
} else {
conn->state = AP_CONN_STATE_RENDDESC_WAIT;
- if(!connection_get_by_type_rendquery(CONN_TYPE_DIR, conn->rend_query)) {
+ if(connection_get_by_type_rendquery(CONN_TYPE_DIR, conn->rend_query)) {
+ log_fn(LOG_INFO,"Would fetch a new renddesc here (for %s), but one is already in progress.", conn->rend_query);
+ } else {
/* not one already; initiate a dir rend desc lookup */
directory_initiate_command(router_pick_directory_server(),
DIR_PURPOSE_FETCH_RENDDESC,