efl/src/lib/ecore_con
Guillaume Friloux 101c13d582 ecore_con: Fix connect() handling
If connect() returns 0, we must send the ECORE_CON_EVENT_SERVER_ADD event
because it wont be given by select(). select() will ONLY notice it if connect
returns -1 with errno set to EINPROGRESS.

This bug is reproductible with 100% chance using ecore_con_telnet_client example
from https://github.com/gfriloux/examples if you connect to 127.0.0.1 instead of
of an external network ip, under FreeBSD (and likely any BSD).

Seems very rare to trigger it under GNU/Linux as it seems that connect()
doesnt want to return 0 when having non blocking sockets (or is too slow),
but it seems i was having this bug too on production servers, without being
ever able to reproduce it.
2014-10-08 15:34:48 -04:00
..
Ecore_Con.h ecore-con: Fixed header to allow compilation in C++. 2014-09-18 07:07:53 +01:00
Ecore_Con_Eet.h merge: add escape ecore, fix several bugs 2012-12-02 22:35:45 +00:00
Ecore_Con_Eo.h Ecore con: Add Connector class (the connecting variant of server). 2014-09-01 12:35:22 +01:00
Ecore_Con_Legacy.h Ecore con: Add Connector class (the connecting variant of server). 2014-09-01 12:35:22 +01:00
dns.c efl/ecore_con - compare same types. 2014-01-18 18:50:51 +09:00
dns.h rebase dns.c from upstream 2013-12-12 09:29:02 -05:00
ecore_con.c ecore_con: Fix connect() handling 2014-10-08 15:34:48 -04:00
ecore_con_alloc.c reformat ecore_con so I can read it... 2013-12-20 00:08:43 -05:00
ecore_con_ares.c Ecore con: Fix compilation on windows. 2014-08-27 16:19:25 +01:00
ecore_con_base.eo Ecore con: Add Connector class (the connecting variant of server). 2014-09-01 12:35:22 +01:00
ecore_con_client.eo Ecore con: Rename to Ecore.Con.Base for the C++ bindings. 2014-08-22 17:37:56 +01:00
ecore_con_connector.eo Ecore con: Add Connector class (the connecting variant of server). 2014-09-01 12:35:22 +01:00
ecore_con_dns.c ecore-con - fix explicit null ptr deref 2014-08-27 17:14:30 +09:00
ecore_con_eet.c Fix warning with undefined ntohl(). 2014-05-30 14:15:27 +02:00
ecore_con_info.c fix duplicate function call names in ecore and ecore_con that can clash 2014-06-16 15:57:05 +09:00
ecore_con_local.c ecore-con - check return of mkdir 2014-08-27 16:28:46 +09:00
ecore_con_local_win32.c Ecore con: Fix some ecore con runtime issues on windows. 2014-08-27 16:25:27 +01:00
ecore_con_private.h Ecore con url: Migrate to eo. 2014-09-01 11:12:17 +01:00
ecore_con_server.eo eolian: builtin complex types 2014-09-08 14:53:13 +01:00
ecore_con_socks.c Ecore con server: Migrate to eo. 2014-08-22 17:37:56 +01:00
ecore_con_ssl.c ecore-con - fix typo in error handling for ssl client init 2014-08-27 17:18:22 +09:00
ecore_con_url.c Ecore con url: Migrate to eo. 2014-09-01 11:12:17 +01:00
ecore_con_url.eo Ecore con url: Migrate to eo. 2014-09-01 11:12:17 +01:00