summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2013-05-08 14:13:14 +0000
committerandre <andre@FreeBSD.org>2013-05-08 14:13:14 +0000
commitcdd4fa931f8486e9fff068b5ea34cdc75b9b42cd (patch)
tree079be1a87f93704484c1a5b613a48e25850baef1 /sys/kern
parent2161190d39dc7ec4cfbccdf8973626fe35063fb7 (diff)
downloadFreeBSD-src-cdd4fa931f8486e9fff068b5ea34cdc75b9b42cd.zip
FreeBSD-src-cdd4fa931f8486e9fff068b5ea34cdc75b9b42cd.tar.gz
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
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/uipc_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index c9b48d3..9330bb4 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",
OpenPOWER on IntegriCloud