relay: Add TCP port exhaustion metrics

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet
2021-05-06 11:17:26 -04:00
parent c6f41d6038
commit 22861c2f40
5 changed files with 46 additions and 1 deletions
+1 -1
View File
@@ -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);