Module: kamailio
Branch: master
Commit: 83724225ebc3ed778e7bacb487e3d3376e47e504
URL:
https://github.com/kamailio/kamailio/commit/83724225ebc3ed778e7bacb487e3d33…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-31T15:48:54+02:00
core: tcp - print reason in tcp emit closed event debug message
---
Modified: src/core/tcp_read.c
---
Diff:
https://github.com/kamailio/kamailio/commit/83724225ebc3ed778e7bacb487e3d33…
Patch:
https://github.com/kamailio/kamailio/commit/83724225ebc3ed778e7bacb487e3d33…
---
diff --git a/src/core/tcp_read.c b/src/core/tcp_read.c
index db3707b39e..f786fb2f6f 100644
--- a/src/core/tcp_read.c
+++ b/src/core/tcp_read.c
@@ -193,7 +193,7 @@ static int tcp_emit_closed_event(struct tcp_connection *con, enum
tcp_closed_rea
sr_event_param_t evp = {0};
ret = 0;
- LM_DBG("TCP closed event creation triggered\n");
+ LM_DBG("TCP closed event creation triggered (reason: %d)\n", reason);
if(likely(sr_event_enabled(SREV_TCP_CLOSED))) {
memset(&tev, 0, sizeof(tcp_closed_event_info_t));
tev.reason = reason;
@@ -201,7 +201,7 @@ static int tcp_emit_closed_event(struct tcp_connection *con, enum
tcp_closed_rea
evp.data = (void*)(&tev);
ret = sr_event_exec(SREV_TCP_CLOSED, &evp);
} else {
- LM_DBG("no callback registering for handling TCP closed event -
dropping!\n");
+ LM_DBG("no callback registering for handling TCP closed event\n");
}
return ret;
}