Module: kamailio
Branch: master
Commit: 317f707425a4cf0be144d2c874fcdf2ad8d7f992
URL:
https://github.com/kamailio/kamailio/commit/317f707425a4cf0be144d2c874fcdf2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-08T14:44:34+02:00
core: tcp - debug message when removing connection from list
---
Modified: src/core/tcp_read.c
---
Diff:
https://github.com/kamailio/kamailio/commit/317f707425a4cf0be144d2c874fcdf2…
Patch:
https://github.com/kamailio/kamailio/commit/317f707425a4cf0be144d2c874fcdf2…
---
diff --git a/src/core/tcp_read.c b/src/core/tcp_read.c
index ed0a5753cb..655db7da7b 100644
--- a/src/core/tcp_read.c
+++ b/src/core/tcp_read.c
@@ -1881,6 +1881,13 @@ inline static int handle_io(struct fd_map* fm, short events, int
idx)
ip_addr2a(&con->rcv.dst_ip), con->rcv.dst_port);
}
if(tcp_conn_lst!=NULL) {
+ LM_DBG("removing from list %p id %d fd %d,"
+ " state %d, flags %x, main fd %d, refcnt %d"
+ " ([%s]:%u -> [%s]:%u)\n",
+ con, con->id, con->fd, con->state,
+ con->flags, con->s, atomic_get(&con->refcnt),
+ ip_addr2a(&con->rcv.src_ip), con->rcv.src_port,
+ ip_addr2a(&con->rcv.dst_ip), con->rcv.dst_port);
tcpconn_listrm(tcp_conn_lst, con, c_next, c_prev);
local_timer_del(&tcp_reader_ltimer, &con->timer);
if (unlikely(resp!=CONN_EOF))