For non-blocking sockets lets not block on read_all()

Addresses #435

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7291 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2009-05-03 15:17:21 +00:00 committed by Git SVN Gateway
parent 37d3b9535f
commit a9070e60a9
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ static ssize_t read_all(Socket* sock, void* buf, size_t max_size)
{
received = recv(sock->fd, buf, max_size, 0);
} while (received == SOCKET_ERROR && (getSockErr() == EAGAIN || getSockErr() == EINTR));
} while (received == SOCKET_ERROR && getSockErr() == EINTR);
sock->ready = false;