attempt to fix network problem
This commit is contained in:
parent
0e93c92ce4
commit
cf0dbc80c5
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ int receive_bytes(TCPsocket s, char* buf, size_t nbytes)
|
|||
int res = 0;
|
||||
do {
|
||||
errno = 0;
|
||||
res = recv(sock->channel, buf, nbytes, 0); //MSG_DONTWAIT|MSG_ERRQUEUE);
|
||||
res = recv(sock->channel, buf, nbytes, MSG_DONTWAIT); //MSG_DONTWAIT|MSG_ERRQUEUE);
|
||||
} while(errno == EINTR);
|
||||
return res;
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue