diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2011-12-24 04:55:20 -0800 |
---|---|---|
committer | Robert Ransom <rransom.8774@gmail.com> | 2011-12-27 08:02:43 -0800 |
commit | 836161c56062686d274abf4218779c4db5c8cf5c (patch) | |
tree | 382e1825809d3ac785082c6e52773342e3ddd5da /src/or/circuituse.c | |
parent | f88c8ca8c98dc3a0c9e63012ce425d1287625444 (diff) | |
download | tor-836161c56062686d274abf4218779c4db5c8cf5c.tar.gz tor-836161c56062686d274abf4218779c4db5c8cf5c.zip |
Add an option to close HS service-side rend circs on timeout
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 3 |
1 files changed, 2 insertions, 1 deletions
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.", |