These prints are useful when checking why network
connection failed.
---
gweb/gweb.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gweb/gweb.c b/gweb/gweb.c
index 5ec4fb1..3db5dc5 100644
--- a/gweb/gweb.c
+++ b/gweb/gweb.c
@@ -1019,6 +1019,7 @@ static int connect_session_transport(struct web_session
*session)
if (session->web->index > 0) {
if (bind_socket(sk, session->web->index,
session->addr->ai_family) < 0) {
+ debug(session->web, "bind() %s", strerror(errno));
close(sk);
return -EIO;
}
@@ -1033,6 +1034,7 @@ static int connect_session_transport(struct web_session
*session)
}
if (session->transport_channel == NULL) {
+ debug(session->web, "channel missing");
close(sk);
return -ENOMEM;
}
@@ -1049,6 +1051,7 @@ static int connect_session_transport(struct web_session
*session)
if (connect(sk, session->addr->ai_addr,
session->addr->ai_addrlen) < 0) {
if (errno != EINPROGRESS) {
+ debug(session->web, "connect() %s", strerror(errno));
close(sk);
return -EIO;
}
--
1.7.5.4
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman