From 58c97429ecf7c7e08a859f9f398ba733c9dcd582 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Tue, 26 Dec 2023 11:45:53 +0100 Subject: [PATCH] core/master: fix socket queue stats for ipv6 It looks like the code works fine with ipv6 too so enable it. Fix #2577 --- core/master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/master.c b/core/master.c index e58161687..44fbc0465 100644 --- a/core/master.c +++ b/core/master.c @@ -276,7 +276,7 @@ static void master_check_listen_queue() { uint64_t backlog = 0; struct uwsgi_socket *uwsgi_sock = uwsgi.sockets; while(uwsgi_sock) { - if (uwsgi_sock->family == AF_INET) { + if (uwsgi_sock->family == AF_INET || uwsgi_sock->family == AF_INET6) { get_tcp_info(uwsgi_sock); } #ifdef __linux__