Merge pull request #3628 from GregorR/network-send-blocking-fix

Fix socket_send_all_blocking to fail on errors not related to blocking
This commit is contained in:
Alcaro 2016-09-21 20:09:35 +02:00 committed by GitHub
commit 4ceb53207f

View File

@ -164,7 +164,7 @@ int socket_send_all_blocking(int fd, const void *data_, size_t size,
no_signal ? MSG_NOSIGNAL : 0);
if (ret <= 0)
{
if (!isagain(ret))
if (isagain(ret))
continue;
return false;