summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2013-11-06 15:05:49 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2013-11-06 15:05:49 +0100
commit1b216cc108169c08633fd43f74fa0f4cc77f2e86 (patch)
tree8f4b27afe48fba84e09d5d2bd8224b5c8de93eaa
parentbbabc747b2ec66d9e8f33bbafa8c3ee605f19d15 (diff)
Ecore_con send error event when dns error.
This patch is a backport of http://git.enlightenment.org/core/efl.git/commit/?id=838c3bed85535559713e57f6e523da1f73c0ca31 : Fixes a bug where when you try to connect to a server using an 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. /hug tasn.
-rw-r--r--src/lib/ecore_con/ecore_con.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index 01c97672..7a8232d1 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -1753,7 +1753,8 @@ _ecore_con_cb_udp_connect(void *data,
1753 return; 1753 return;
1754 1754
1755error: 1755error:
1756 if (errno || memerr) ecore_con_event_server_error(svr, memerr ?: strerror(errno)); 1756 ecore_con_event_server_error(svr,
1757 memerr ?: errno? strerror(errno) : "DNS error");
1757 ecore_con_ssl_server_shutdown(svr); 1758 ecore_con_ssl_server_shutdown(svr);
1758 _ecore_con_server_kill(svr); 1759 _ecore_con_server_kill(svr);
1759} 1760}