Skip to content
Snippets Groups Projects
Commit de0f72ce authored by Roger Dingledine's avatar Roger Dingledine
Browse files

bugfix: when you finish answering a 'resolve' request, hold the

connection open so you can flush the answer


svn:r2148
parent 54dd90d3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment