Module: kamailio Branch: 5.2 Commit: efbf7aa7b8b3af03be43d926c6e0fc23c2349e87 URL: https://github.com/kamailio/kamailio/commit/efbf7aa7b8b3af03be43d926c6e0fc23...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-03-10T09:21:35+01:00
core: tcp - more details in debug messages
(cherry picked from commit 60f7ff60a95ab5dd8192391f50f760e802d11e07)
---
Modified: src/core/tcp_main.c
---
Diff: https://github.com/kamailio/kamailio/commit/efbf7aa7b8b3af03be43d926c6e0fc23... Patch: https://github.com/kamailio/kamailio/commit/efbf7aa7b8b3af03be43d926c6e0fc23...
---
diff --git a/src/core/tcp_main.c b/src/core/tcp_main.c index 7c26eceee3..12ddf6f619 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