[tor] branch main updated: metrics: Decrement hs_intro_established_count on intro circuit close.

This is an automated email from the git hooks/post-receive script. dgoulet pushed a commit to branch main in repository tor. The following commit(s) were added to refs/heads/main by this push: new 21b3397f9b metrics: Decrement hs_intro_established_count on intro circuit close. new 482ce87a8d Merge branch 'maint-0.4.7' 21b3397f9b is described below commit 21b3397f9b0803134bc458b83cd161de259887fd Author: Gabriela Moldovan <gabi@torproject.org> AuthorDate: Fri Feb 10 20:31:36 2023 +0000 metrics: Decrement hs_intro_established_count on intro circuit close. Closes #40751. Signed-off-by: Gabriela Moldovan <gabi@torproject.org> --- changes/bug40751 | 3 +++ src/feature/hs/hs_metrics.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changes/bug40751 b/changes/bug40751 new file mode 100644 index 0000000000..baa5e90397 --- /dev/null +++ b/changes/bug40751 @@ -0,0 +1,3 @@ + o Minor bugfixes (metrics): + - Decrement hs_intro_established_count on introduction circuit close. Fixes + bug 40751; bugfix on 0.4.7.12. diff --git a/src/feature/hs/hs_metrics.h b/src/feature/hs/hs_metrics.h index 6af3a7e7f0..2e0fa5048d 100644 --- a/src/feature/hs/hs_metrics.h +++ b/src/feature/hs/hs_metrics.h @@ -65,6 +65,6 @@ void hs_metrics_update_by_service(const hs_metrics_key_t key, /** Established introduction circuit closes. This is called when * INTRO_ESTABLISHED circuit is marked for close. */ #define hs_metrics_close_established_intro(i) \ - hs_metrics_update_by_ident(HS_METRICS_NUM_ESTABLISHED_INTRO, (i), 0, 1) + hs_metrics_update_by_ident(HS_METRICS_NUM_ESTABLISHED_INTRO, (i), 0, -1) #endif /* !defined(TOR_FEATURE_HS_HS_METRICS_H) */ -- To stop receiving notification emails like this one, please contact the administrator of this repository.
participants (1)
-
gitolite role