aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2023-02-13 10:16:13 -0500
committerDavid Goulet <dgoulet@torproject.org>2023-02-13 10:16:13 -0500
commit0b38e2e75a96bb84317cf0d9ff9ba879b17b5ff3 (patch)
tree4e5b201d64b75a845e190207c41eb36601dd16ed
parentf7311346970e60b5a18e8fd5a54e7d8a8a7f88bc (diff)
parent21b3397f9b0803134bc458b83cd161de259887fd (diff)
downloadtor-0b38e2e75a96bb84317cf0d9ff9ba879b17b5ff3.tar.gz
tor-0b38e2e75a96bb84317cf0d9ff9ba879b17b5ff3.zip
Merge branch 'maint-0.4.7' into release-0.4.7
-rw-r--r--changes/bug407513
-rw-r--r--src/feature/hs/hs_metrics.h2
2 files changed, 4 insertions, 1 deletions
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) */