From 6753da1356b259fbf62d9fa41cf6cf717fdc21a4 Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Wed, 8 May 2013 14:13:14 +0000 Subject: [PATCH] When the accept queue is full print the number of already pending new connections instead of by how many we're over the limit, which is always 1. Noticed by: jmallet MFC after: 1 week --- sys/kern/uipc_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index c9b48d36a62c..9330bb4902ad 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -515,7 +515,7 @@ sonewconn(struct socket *head, int connstatus) #endif log(LOG_DEBUG, "%s: pcb %p: Listen queue overflow: " "%i already in queue awaiting acceptance\n", - __func__, head->so_pcb, over); + __func__, head->so_pcb, head->so_qlen); return (NULL); } VNET_ASSERT(head->so_vnet != NULL, ("%s:%d so_vnet is NULL, head=%p",