aboutsummaryrefslogtreecommitdiff
path: root/changes/bug7890
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-08-28 14:31:32 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-08-28 14:43:42 -0400
commit6507ecb7e8751b3b66886306bfae3ca846bd0f81 (patch)
tree8240b311516912acb24caea3598dc8c94d087358 /changes/bug7890
parent63fc23f8260e2723182fbd8476df78559be325d3 (diff)
downloadtor-6507ecb7e8751b3b66886306bfae3ca846bd0f81.tar.gz
tor-6507ecb7e8751b3b66886306bfae3ca846bd0f81.zip
hs: Fix the intro circuit max retry
Some parentheses were missing making the rend_max_intro_circs_per_period() return a lower value than it was suppose to. The calculation is that a service at most will open a number of intro points that it wants which is 3 by default or HiddenServiceNumIntroductionPoints. Two extra are launched for performance reason. Finally, this can happen twice for two descriptors for the current and next time period. From: 2 * n_intro_wanted + 2 ...which resulted in 8 for 3 intro points, this commit fixes it to: (n_intro_wanted + 2) * 2 ... resulting in 12 possible intro point circuit which is the correct maximum intro circuit allowed per period. Last, this commit rate limits the the log message if we ever go above that limit else over a INTRO_CIRC_RETRY_PERIOD, we can print it often! Fixes #22159 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'changes/bug7890')
0 files changed, 0 insertions, 0 deletions