aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-04-19 12:00:36 +1000
committerteor <teor@torproject.org>2019-04-19 12:00:36 +1000
commitfa6296df3afb6824f0610aabaef486c4b4b4c82c (patch)
treeab502776d94e681c49b4aff425cbb355cf7137ae /src/or/circuituse.c
parent2afba291bbfc79198e1cd62382a30168f45db4e5 (diff)
parentcbce8dedd3703424111928d68dfe8920900ce054 (diff)
downloadtor-fa6296df3afb6824f0610aabaef486c4b4b4c82c.tar.gz
tor-fa6296df3afb6824f0610aabaef486c4b4b4c82c.zip
Merge branch 'maint-0.3.4' into release-0.3.4
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 8e007ce920..03f2ae52cf 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -1560,10 +1560,14 @@ circuit_expire_old_circuits_serverside(time_t now)
or_circ = TO_OR_CIRCUIT(circ);
/* If the circuit has been idle for too long, and there are no streams
* on it, and it ends here, and it used a create_fast, mark it for close.
+ *
+ * Also if there is a rend_splice on it, it's a single onion service
+ * circuit and we should not close it.
*/
if (or_circ->p_chan && channel_is_client(or_circ->p_chan) &&
!circ->n_chan &&
!or_circ->n_streams && !or_circ->resolving_streams &&
+ !or_circ->rend_splice &&
channel_when_last_xmit(or_circ->p_chan) <= cutoff) {
log_info(LD_CIRC, "Closing circ_id %u (empty %d secs ago)",
(unsigned)or_circ->p_circ_id,