From efbf7aa7b8b3af03be43d926c6e0fc23c2349e87 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 8 Mar 2019 18:40:45 +0100 Subject: [PATCH] core: tcp - more details in debug messages (cherry picked from commit 60f7ff60a95ab5dd8192391f50f760e802d11e07) --- src/core/tcp_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/tcp_main.c b/src/core/tcp_main.c index 7c26eceee34..12ddf6f6196 100644 --- a/src/core/tcp_main.c +++ b/src/core/tcp_main.c @@ -3864,15 +3864,15 @@ inline static int send2child(struct tcp_connection* tcpconn) } } } - + tcp_children[idx].busy++; tcp_children[idx].n_reqs++; if (unlikely(min_busy)){ LM_DBG("WARNING: no free tcp receiver, " - "connection passed to the least busy one (%d)\n", - min_busy); + "connection passed to the least busy one (idx:%d busy:%d)\n", + idx, min_busy); } - LM_DBG("selected tcp worker %d %d(%ld) for activity on [%s], %p\n", + LM_DBG("selected tcp worker idx:%d proc:%d pid:%ld for activity on [%s], %p\n", idx, tcp_children[idx].proc_no, (long)tcp_children[idx].pid, (tcpconn->rcv.bind_address)?tcpconn->rcv.bind_address->sock_str.s:"", tcpconn); @@ -3886,7 +3886,7 @@ inline static int send2child(struct tcp_connection* tcpconn) /* process tcp readers requests */ while(unlikely((tcpconn->state != S_CONN_BAD && (handle_tcp_child(&tcp_children[idx], -1)>0)))); - + /* the above possible pending requests might have included a command to close this tcpconn (e.g. CONN_ERROR, CONN_EOF). In this case the fd is already closed here (and possible