diff options
-rw-r--r-- | src/or/connection_edge.c | 2 | ||||
-rw-r--r-- | src/or/relay.c | 1 |
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; } |