aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.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/circuitbuild.c
parentefb5db449a13a6cf87799c71a84b18b144e6e163 (diff)
downloadtor-36baf7219d458449cbbdac9b61cc34492f85fb88.tar
tor-36baf7219d458449cbbdac9b61cc34492f85fb88.tar.gz
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/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index e394f6266..f49262384 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -722,8 +722,7 @@ int circuit_truncated(circuit_t *circ, crypt_path_t *layer) {
/* no need to send 'end' relay cells,
* because the other side's already dead
*/
- stream->has_sent_end = 1;
- connection_mark_for_close(stream);
+ connection_close_unattached_ap(stream, END_STREAM_REASON_DESTROY);
}
}