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-861f7616d084master
parent
37d3b9535f
commit
a9070e60a9
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue