Fix socket_send_all_blocking to fail on errors not related to blocking
This commit is contained in:
parent
8831d19008
commit
b0672e47ae
|
@ -164,7 +164,7 @@ int socket_send_all_blocking(int fd, const void *data_, size_t size,
|
||||||
no_signal ? MSG_NOSIGNAL : 0);
|
no_signal ? MSG_NOSIGNAL : 0);
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
{
|
{
|
||||||
if (!isagain(ret))
|
if (isagain(ret))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue