r18941@catbus: nickm | 2008-03-18 14:59:43 -0400

Likely fix for bug 632: do not call start_reading on a placeholder connection.


svn:r14109
This commit is contained in:
Nick Mathewson
2008-03-18 19:00:12 +00:00
parent a62a24036d
commit e96d22e914
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -1813,6 +1813,12 @@ set_streams_blocked_on_circ(circuit_t *circ, or_connection_t *orconn,
connection_t *conn = TO_CONN(edge);
conn->edge_blocked_on_circ = block;
if (!conn->read_event) {
/* This connection is a placeholder for something; probably a DNS
* request. It can't actually stop or start reading.*/
continue;
}
if (block) {
if (connection_is_reading(conn))
connection_stop_reading(conn);