]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
when building preemptive circuits, ignore streams that have a
authorRoger Dingledine <arma@torproject.org>
Mon, 3 Nov 2008 07:00:56 +0000 (07:00 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 3 Nov 2008 07:00:56 +0000 (07:00 +0000)
chosen exit node in mind already. otherwise we get tricked into
trying to build a new circuit that will handle them.

svn:r17184

src/or/circuitbuild.c

index f9e7981106706841dc3041efa90b8dba054aaf2e..e7ab333e82914520f77a81049920b9a33ebf8a96 100644 (file)
@@ -1168,7 +1168,8 @@ ap_stream_wants_exit_attention(connection_t *conn)
       conn->state == AP_CONN_STATE_CIRCUIT_WAIT &&
       !conn->marked_for_close &&
       !(TO_EDGE_CONN(conn)->want_onehop) && /* ignore one-hop streams */
-      !(TO_EDGE_CONN(conn)->use_begindir) && /* ignore targetted dir fetches */
+      !(TO_EDGE_CONN(conn)->use_begindir) && /* ignore targeted dir fetches */
+      !(TO_EDGE_CONN(conn)->chosen_exit_name) && /* ignore defined streams */
       !connection_edge_is_rendezvous_stream(TO_EDGE_CONN(conn)) &&
       !circuit_stream_is_being_handled(TO_EDGE_CONN(conn), 0,
                                        MIN_CIRCUITS_HANDLING_STREAM))