summaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-03-27 04:55:13 +0000
committerRoger Dingledine <arma@torproject.org>2005-03-27 04:55:13 +0000
commit36baf7219d458449cbbdac9b61cc34492f85fb88 (patch)
tree4b618242ed0830bdc1a7c520cf0720c35bb76988 /src/or/rendclient.c
parentefb5db449a13a6cf87799c71a84b18b144e6e163 (diff)
downloadtor-36baf7219d458449cbbdac9b61cc34492f85fb88.tar.gz
tor-36baf7219d458449cbbdac9b61cc34492f85fb88.zip
stop most cases of hanging up on a socks connection without sending
the socks reject. audit for remaining ones. also make things more uniform so we always remember to hold-open-until-flushed, etc. svn:r3891
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 9fc6607533..2b1970f95e 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -394,14 +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.");
- conn->has_sent_end = 1;
- connection_mark_for_close(conn);
+ connection_close_unattached_ap(conn, END_STREAM_REASON_MISC);
}
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);
- conn->has_sent_end = 1;
- connection_mark_for_close(conn);
+ connection_close_unattached_ap(conn, END_STREAM_REASON_TIMEOUT);
}
}
}