Module: kamailio
Branch: master
Commit: 60f7ff60a95ab5dd8192391f50f760e802d11e07
URL:
https://github.com/kamailio/kamailio/commit/60f7ff60a95ab5dd8192391f50f760e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-03-08T18:40:45+01:00
core: tcp - more details in debug messages
---
Modified: src/core/tcp_main.c
---
Diff:
https://github.com/kamailio/kamailio/commit/60f7ff60a95ab5dd8192391f50f760e…
Patch:
https://github.com/kamailio/kamailio/commit/60f7ff60a95ab5dd8192391f50f760e…
---
diff --git a/src/core/tcp_main.c b/src/core/tcp_main.c
index c412ef7b68..20e16606c0 100644
--- a/src/core/tcp_main.c
+++ b/src/core/tcp_main.c
@@ -4097,15 +4097,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);
@@ -4119,7 +4119,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