[sr-dev] git:master:5f249318: evapi: Improved error message

Eloy Coto eloy.coto at gmail.com
Tue Jun 20 15:42:38 CEST 2017


Module: kamailio
Branch: master
Commit: 5f249318adfe26b35426c2b43f4c3df31edc1de1
URL: https://github.com/kamailio/kamailio/commit/5f249318adfe26b35426c2b43f4c3df31edc1de1

Author: Eloy Coto <eloy.coto at gmail.com>
Committer: Eloy Coto <eloy.coto at gmail.com>
Date: 2017-06-20T14:06:48+01:00

evapi: Improved error message

Signed-off-by: Eloy Coto <eloy.coto at gmail.com>

---

Modified: src/modules/evapi/evapi_dispatch.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5f249318adfe26b35426c2b43f4c3df31edc1de1.diff
Patch: https://github.com/kamailio/kamailio/commit/5f249318adfe26b35426c2b43f4c3df31edc1de1.patch

---

diff --git a/src/modules/evapi/evapi_dispatch.c b/src/modules/evapi/evapi_dispatch.c
index 1639c5d4d8..5429d6913b 100644
--- a/src/modules/evapi/evapi_dispatch.c
+++ b/src/modules/evapi/evapi_dispatch.c
@@ -492,7 +492,7 @@ void evapi_accept_client(struct ev_loop *loop, struct ev_io *watcher, int revent
 	csock = accept(watcher->fd, (struct sockaddr *)&caddr, &clen);
 
 	if (csock < 0) {
-		LM_ERR("cannot accept the client\n");
+		LM_ERR("cannot accept the client '%s' err='%d'\n", gai_strerror(csock), csock);
 		free(evapi_client);
 		return;
 	}




More information about the sr-dev mailing list