FS-5642 --resolve add back the ETIMEDOUT check, needed on Mac

This commit is contained in:
Seven Du 2013-12-13 11:46:14 +08:00
parent 9ec1e86574
commit f5b18c0fdd
1 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ int ws_handshake(wsh_t *wsh)
ws_raw_write(wsh, respond, strlen(respond));
wsh->handshake = 1;
return 0;
err:
@ -809,7 +809,7 @@ int xp_errno(void)
int xp_is_blocking(int errcode)
{
return errcode == EAGAIN || errcode == EWOULDBLOCK || errcode == EINPROGRESS || errcode == EINTR;
return errcode == EAGAIN || errcode == EWOULDBLOCK || errcode == EINPROGRESS || errcode == EINTR || errcode == ETIMEDOUT;
}
#endif