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:
Gustavo Sverzut Barbieri 2016-10-18 16:32:04 -02:00
parent 7785bfa167
commit 23b9b0d78d
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}