barbieri pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=23b9b0d78dc5ee247a55e32d17a5711b4f7a51aa

commit 23b9b0d78dc5ee247a55e32d17a5711b4f7a51aa
Author: Gustavo Sverzut Barbieri <barbi...@profusion.mobi>
Date:   Tue Oct 18 16:32:04 2016 -0200

    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.
---
 src/lib/ecore_con/efl_net_socket_tcp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_con/efl_net_socket_tcp.c 
b/src/lib/ecore_con/efl_net_socket_tcp.c
index bedf230..aa70f8b 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;
      }
 

-- 


Reply via email to