commit 482ce87a8de23bf6d29ec55c1c7b9399dbdfac3b
parent c98d78c95c198dd513c9cc446ed09d430b49566c
Author: David Goulet <dgoulet@torproject.org>
Date: Mon, 13 Feb 2023 10:16:13 -0500
Merge branch 'maint-0.4.7'
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/changes/bug40751 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
@@ -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) */