aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-04-02 22:11:24 +0000
committerNick Mathewson <nickm@torproject.org>2005-04-02 22:11:24 +0000
commit055ee7c3231c8e0e2b645f318e990e4200bb5fbf (patch)
treeb3bca05da72a3d932bb1422015f5b4992f13b357 /src/or/rendclient.c
parent4a90d3722969f6b0c8b7a4507af0889594fbed13 (diff)
downloadtor-055ee7c3231c8e0e2b645f318e990e4200bb5fbf.tar
tor-055ee7c3231c8e0e2b645f318e990e4200bb5fbf.tar.gz
Give better warnings if connection_close_unattached_ap gets called twice or called on a marked connection; rename it to connection_mark_unattached_ap.
svn:r3990
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 6791bbd3e..c63a4d9cb 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -394,12 +394,12 @@ void rend_client_desc_here(char *query) {
if (connection_ap_handshake_attach_circuit(conn) < 0) {
/* it will never work */
log_fn(LOG_WARN,"attaching to a rend circ failed. Closing conn.");
- connection_close_unattached_ap(conn, END_STREAM_REASON_CANT_ATTACH);
+ connection_mark_unattached_ap(conn, END_STREAM_REASON_CANT_ATTACH);
}
tor_assert(conn->state != AP_CONN_STATE_RENDDESC_WAIT); /* avoid loop */
} else { /* 404, or fetch didn't get that far */
log_fn(LOG_NOTICE,"Closing stream for '%s.onion': hidden service is unavailable (try again later).", query);
- connection_close_unattached_ap(conn, END_STREAM_REASON_TIMEOUT);
+ connection_mark_unattached_ap(conn, END_STREAM_REASON_TIMEOUT);
}
}
}