Merge branch 'maint-0.4.7'

This commit is contained in:
David Goulet 2023-02-13 10:16:13 -05:00
commit 482ce87a8d
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) */