summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-17 13:14:43 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-17 13:14:43 +0000
commit119fd23f1eb560867c90cec9c4d8d7fae2c8ac1a (patch)
tree9c0d2c3ed28a4622924be8933ec6128a3508c9a1
parentfea3382aca569cd93cc0a43b45e558e58cee6b8e (diff)
downloadtor-119fd23f1eb560867c90cec9c4d8d7fae2c8ac1a.tar.gz
tor-119fd23f1eb560867c90cec9c4d8d7fae2c8ac1a.zip
Backport r17181: fix the other half of r17091. now that best_support can be -1, 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:r17638
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 473b67875a..65bd16afea 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1162,6 +1162,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))