aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-08-05 00:39:23 +0000
committerRoger Dingledine <arma@torproject.org>2004-08-05 00:39:23 +0000
commitde0f72ce2a6e6c7cd8d55cd5c839c523db58da33 (patch)
treee9867342fa6f132d084aba371cf3c8721f0627a7 /src/or/connection_edge.c
parent54dd90d39157f64648db65a40ef498369da21801 (diff)
downloadtor-de0f72ce2a6e6c7cd8d55cd5c839c523db58da33.tar
tor-de0f72ce2a6e6c7cd8d55cd5c839c523db58da33.tar.gz
bugfix: when you finish answering a 'resolve' request, hold the
connection open so you can flush the answer svn:r2148
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 29f948ece..35500309e 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -379,6 +379,7 @@ static int connection_ap_handshake_process_socks(connection_t *conn) {
conn->socks_request->has_finished = 1;
conn->has_sent_end = 1;
connection_mark_for_close(conn);
+ conn->hold_open_until_flushed = 1;
return 0;
}
answer = htonl(client_dns_lookup_entry(socks->address));
@@ -388,6 +389,7 @@ static int connection_ap_handshake_process_socks(connection_t *conn) {
conn->socks_request->has_finished = 1;
conn->has_sent_end = 1;
connection_mark_for_close(conn);
+ conn->hold_open_until_flushed = 1;
return 0;
}
}