aboutsummaryrefslogtreecommitdiff
path: root/src/core/mainloop/connection.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-05-06 11:17:26 -0400
committerDavid Goulet <dgoulet@torproject.org>2021-05-12 11:58:25 -0400
commit22861c2f4083e7e29a732a4907c2dcadd6a6a4db (patch)
tree09b188e0d1e4b97322f9601fc2dee18fab7ca0b2 /src/core/mainloop/connection.c
parentc6f41d6038752d847b2c60cf6dfd7fbcb163c345 (diff)
downloadtor-22861c2f4083e7e29a732a4907c2dcadd6a6a4db.tar.gz
tor-22861c2f4083e7e29a732a4907c2dcadd6a6a4db.zip
relay: Add TCP port exhaustion metrics
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/mainloop/connection.c')
-rw-r--r--src/core/mainloop/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c
index 9c6da1295f..4832f25491 100644
--- a/src/core/mainloop/connection.c
+++ b/src/core/mainloop/connection.c
@@ -1261,7 +1261,7 @@ socket_failed_from_resource_exhaustion(void)
*/
if (get_max_sockets() > 65535) {
/* TCP port exhaustion */
- rep_hist_note_overload(OVERLOAD_GENERAL);
+ rep_hist_note_tcp_exhaustion();
} else {
/* File descriptor exhaustion */
rep_hist_note_overload(OVERLOAD_FD_EXHAUSTED);