[sr-dev] git:master:438f91b8: http_client Add error parsing for DNS issues with http_proxy

Olle E. Johansson oej at edvina.net
Mon Mar 28 12:12:42 CEST 2016


Module: kamailio
Branch: master
Commit: 438f91b8b5a43516d8904f23be2fa9898fdc465c
URL: https://github.com/kamailio/kamailio/commit/438f91b8b5a43516d8904f23be2fa9898fdc465c

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date: 2016-03-28T12:08:25+02:00

http_client Add error parsing for DNS issues with http_proxy

---

Modified: modules/http_client/functions.c

---

Diff:  https://github.com/kamailio/kamailio/commit/438f91b8b5a43516d8904f23be2fa9898fdc465c.diff
Patch: https://github.com/kamailio/kamailio/commit/438f91b8b5a43516d8904f23be2fa9898fdc465c.patch

---

diff --git a/modules/http_client/functions.c b/modules/http_client/functions.c
index dc75042..546ffc4 100644
--- a/modules/http_client/functions.c
+++ b/modules/http_client/functions.c
@@ -222,6 +222,8 @@ static int curL_query_url(struct sip_msg* _m, const char* _url, str* _dst, const
 		LM_WARN("failed to connect() to host\n");
 	} else if ( res == CURLE_COULDNT_RESOLVE_HOST ) {
 		LM_WARN("couldn't resolve host\n");
+	} else if ( res == CURLE_COULDNT_RESOLVE_PROXY ) {
+		LM_WARN("couldn't resolve http_proxy host\n");
 	} else {
 		LM_ERR("failed to perform curl (%d)\n", res);
 	}




More information about the sr-dev mailing list