mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-21 21:44:58 +02:00
bugfix: when you finish answering a 'resolve' request, hold the
connection open so you can flush the answer svn:r2148
This commit is contained in:
parent
54dd90d391
commit
de0f72ce2a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user