From 836161c56062686d274abf4218779c4db5c8cf5c Mon Sep 17 00:00:00 2001 From: Robert Ransom Date: Sat, 24 Dec 2011 04:55:20 -0800 Subject: Add an option to close HS service-side rend circs on timeout --- src/or/circuituse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/or/circuituse.c') diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 9778ae7b29..c07d434b7c 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -553,7 +553,8 @@ circuit_expire_building(void) /* If this is a service-side rendezvous circuit which is far * enough along in connecting to its destination, consider sparing * it. */ - if (!(TO_ORIGIN_CIRCUIT(victim)->hs_circ_has_timed_out) && + if (!(options->CloseHSServiceRendCircuitsImmediatelyOnTimeout) && + !(TO_ORIGIN_CIRCUIT(victim)->hs_circ_has_timed_out) && victim->purpose == CIRCUIT_PURPOSE_S_CONNECT_REND) { log_info(LD_CIRC,"Marking circ %s:%d:%d (state %d:%s, purpose %d) " "as timed-out HS circ; relaunching rendezvous attempt.", -- cgit v1.2.3-54-g00ecf