summaryrefslogtreecommitdiff
path: root/src
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
parent54dd90d39157f64648db65a40ef498369da21801 (diff)
downloadtor-de0f72ce2a6e6c7cd8d55cd5c839c523db58da33.tar.gz
tor-de0f72ce2a6e6c7cd8d55cd5c839c523db58da33.zip
bugfix: when you finish answering a 'resolve' request, hold the
connection open so you can flush the answer svn:r2148
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_edge.c2
-rw-r--r--src/or/relay.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 29f948ecec..35500309ea 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;
}
}
diff --git a/src/or/relay.c b/src/or/relay.c
index 36c3896eb1..e95235f89b 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -581,6 +581,7 @@ connection_edge_process_relay_cell_not_open(
conn->socks_request->has_finished = 1;
conn->has_sent_end = 1;
connection_mark_for_close(conn);
+ conn->hold_open_until_flushed = 1;
return 0;
}