metrics: Decrement hs_intro_established_count on intro circuit close.

Closes #40751.

Signed-off-by: Gabriela Moldovan <gabi@torproject.org>
This commit is contained in:
Gabriela Moldovan 2023-02-10 20:31:36 +00:00
parent e390a7cdee
commit 21b3397f9b
No known key found for this signature in database
GPG Key ID: 3946E0ADE72BAC99
2 changed files with 4 additions and 1 deletions

3
changes/bug40751 Normal file
View File

@ -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.

View File

@ -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) */