forked from enlightenment/efl
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.
This commit is contained in:
parent
7785bfa167
commit
23b9b0d78d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue