summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-11-19 10:44:31 -0500
committerNick Mathewson <nickm@torproject.org>2015-11-19 10:44:31 -0500
commit118bdc3a6ddf14f89f77853078ab4c7cf24f8d94 (patch)
tree3a3f2804b7327b45fd3d8cfc64541ab5fb1a2830 /src/or/circuituse.c
parent913fbf8f2f9eea36ccef6100608295d8c8ce449a (diff)
parent58edf92678019c0e69c043976b2af06551d83ed3 (diff)
downloadtor-118bdc3a6ddf14f89f77853078ab4c7cf24f8d94.tar.gz
tor-118bdc3a6ddf14f89f77853078ab4c7cf24f8d94.zip
Merge remote-tracking branch 'public/decouple_conn_attach_2'
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 00340fd689..5b24425877 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -1123,7 +1123,7 @@ circuit_build_needed_circs(time_t now)
* don't require an exit circuit, review in #13814.
* This allows HSs to function in a consensus without exits. */
if (router_have_consensus_path() != CONSENSUS_PATH_UNKNOWN)
- connection_ap_attach_pending();
+ connection_ap_rescan_and_attach_pending();
/* make sure any hidden services have enough intro points
* HS intro point streams only require an internal circuit */
@@ -1475,7 +1475,7 @@ circuit_has_opened(origin_circuit_t *circ)
case CIRCUIT_PURPOSE_C_ESTABLISH_REND:
rend_client_rendcirc_has_opened(circ);
/* Start building an intro circ if we don't have one yet. */
- connection_ap_attach_pending();
+ connection_ap_attach_pending(1);
/* This isn't a call to circuit_try_attaching_streams because a
* circuit in _C_ESTABLISH_REND state isn't connected to its
* hidden service yet, thus we can't attach streams to it yet,
@@ -1537,14 +1537,14 @@ void
circuit_try_attaching_streams(origin_circuit_t *circ)
{
/* Attach streams to this circuit if we can. */
- connection_ap_attach_pending();
+ connection_ap_attach_pending(1);
/* The call to circuit_try_clearing_isolation_state here will do
* nothing and return 0 if we didn't attach any streams to circ
* above. */
if (circuit_try_clearing_isolation_state(circ)) {
/* Maybe *now* we can attach some streams to this circuit. */
- connection_ap_attach_pending();
+ connection_ap_attach_pending(1);
}
}