]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix the other half of r17091. now that best_support can be -1,
authorRoger Dingledine <arma@torproject.org>
Sat, 1 Nov 2008 23:49:14 +0000 (23:49 +0000)
committerRoger Dingledine <arma@torproject.org>
Sat, 1 Nov 2008 23:49:14 +0000 (23:49 +0000)
we were complaining about no support for our one-hop streams,
when in fact choose_good_exit_server_general() has no business
caring about one-hop streams. patch from miner.

svn:r17181

src/or/circuitbuild.c

index 02414c69adddc36be0630cf80a6ea8c457d8fe32..f9e7981106706841dc3041efa90b8dba054aaf2e 100644 (file)
@@ -1167,6 +1167,8 @@ ap_stream_wants_exit_attention(connection_t *conn)
   if (conn->type == CONN_TYPE_AP &&
       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 */
       !connection_edge_is_rendezvous_stream(TO_EDGE_CONN(conn)) &&
       !circuit_stream_is_being_handled(TO_EDGE_CONN(conn), 0,
                                        MIN_CIRCUITS_HANDLING_STREAM))