summaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-11-17 08:49:30 -0500
committerNick Mathewson <nickm@torproject.org>2015-11-17 09:04:25 -0500
commit84b3350c83a995a7668c16cb06ae069664dc0633 (patch)
treedb6fd22961f3b1a6239593b58cd5cb4ea7f1ee3e /src/or/rendclient.c
parentb1d56fc5890fb6d594e70520c09d040e9b2e1544 (diff)
downloadtor-84b3350c83a995a7668c16cb06ae069664dc0633.tar.gz
tor-84b3350c83a995a7668c16cb06ae069664dc0633.zip
Be more conservative in scanning the list of pending streams
Now we only re-scan the list in the cases we did before: when we have a new circuit that we should try attaching to, or when we have added a new stream that we haven't tried to attach yet. This is part of 17590.
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 3846ef0c32..b8a4b2ab9b 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -52,7 +52,7 @@ rend_client_introcirc_has_opened(origin_circuit_t *circ)
tor_assert(circ->cpath);
log_info(LD_REND,"introcirc is open");
- connection_ap_attach_pending();
+ connection_ap_attach_pending(1);
}
/** Send the establish-rendezvous cell along a rendezvous circuit. if
@@ -1107,7 +1107,7 @@ rend_client_rendezvous_acked(origin_circuit_t *circ, const uint8_t *request,
* than trying to attach them all. See comments bug 743. */
/* If we already have the introduction circuit built, make sure we send
* the INTRODUCE cell _now_ */
- connection_ap_attach_pending();
+ connection_ap_attach_pending(1);
return 0;
}