Fixes a bug where when you try to connect to a server using an
authorGuillaume Friloux <guillaume.friloux@gmail.com>
Wed, 6 Nov 2013 13:13:40 +0000 (14:13 +0100)
committerGuillaume Friloux <guillaume.friloux@gmail.com>
Wed, 6 Nov 2013 13:32:11 +0000 (14:32 +0100)
inexistant DNS, or having a DNS resolution error, there isnt any event
generated for the application to know.

This is not a complete fix has you need to fix a timeout value for it to
happen, but still, it makes it possible to work around it.

More work is needed on this.

src/lib/ecore_con/ecore_con.c

index 7067d8d..fece5f3 100644 (file)
@@ -1751,7 +1751,8 @@ _ecore_con_cb_tcp_connect(void           *data,
    return;
 
 error:
-   if (errno || memerr) ecore_con_event_server_error(svr, memerr ?: strerror(errno));
+   ecore_con_event_server_error(svr,
+                                memerr ?: errno? strerror(errno) : "DNS error");
    ecore_con_ssl_server_shutdown(svr);
    _ecore_con_server_kill(svr);
 }