summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-10-18 16:32:04 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-10-18 19:04:00 -0200
commit23b9b0d78dc5ee247a55e32d17a5711b4f7a51aa (patch)
tree5353ebaba3d1550a691c1b13df20c2108d4596a5
parent7785bfa167bd75027bb0a62af39a1010a9471523 (diff)
downloadefl-23b9b0d78dc5ee247a55e32d17a5711b4f7a51aa.tar.gz
efl_net_socket_tcp: only emit error message if cork is being enabled.
by default we'll start with cork=0 and on adoption of a FD we'll apply cached values, thus we'd try to apply cork=0 (default) and it would error, which is annoying on platforms without such feature. since users interested in TCP_CORK will enable it first, they will get the error at that point.
-rw-r--r--src/lib/ecore_con/efl_net_socket_tcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_con/efl_net_socket_tcp.c b/src/lib/ecore_con/efl_net_socket_tcp.c
index bedf230111..aa70f8bdb9 100644
--- a/src/lib/ecore_con/efl_net_socket_tcp.c
+++ b/src/lib/ecore_con/efl_net_socket_tcp.c
@@ -198,7 +198,8 @@ _efl_net_socket_tcp_cork_set(Eo *o, Efl_Net_Socket_Tcp_Data *pd, Eina_Bool cork)
option = _cork_option_get();
if (EINA_UNLIKELY(option < 0))
{
- ERR("Could not find a TCP_CORK equivalent on your system");
+ if (cork)
+ ERR("Could not find a TCP_CORK equivalent on your system");
return EINA_FALSE;
}