|
|
@ -911,7 +911,7 @@ int wait_read_select(int sockd, int timeout) |
|
|
|
if (unlikely(sockd < 0)) |
|
|
|
if (unlikely(sockd < 0)) |
|
|
|
goto out; |
|
|
|
goto out; |
|
|
|
sfd.fd = sockd; |
|
|
|
sfd.fd = sockd; |
|
|
|
sfd.events = POLLIN; |
|
|
|
sfd.events = POLLIN | POLLRDHUP; |
|
|
|
sfd.revents = 0; |
|
|
|
sfd.revents = 0; |
|
|
|
timeout *= 1000; |
|
|
|
timeout *= 1000; |
|
|
|
ret = poll(&sfd, 1, timeout); |
|
|
|
ret = poll(&sfd, 1, timeout); |
|
|
@ -993,7 +993,7 @@ int wait_write_select(int sockd, int timeout) |
|
|
|
if (unlikely(sockd < 0)) |
|
|
|
if (unlikely(sockd < 0)) |
|
|
|
goto out; |
|
|
|
goto out; |
|
|
|
sfd.fd = sockd; |
|
|
|
sfd.fd = sockd; |
|
|
|
sfd.events = POLLOUT; |
|
|
|
sfd.events = POLLOUT | POLLRDHUP; |
|
|
|
sfd.revents = 0; |
|
|
|
sfd.revents = 0; |
|
|
|
timeout *= 1000; |
|
|
|
timeout *= 1000; |
|
|
|
ret = poll(&sfd, 1, timeout); |
|
|
|
ret = poll(&sfd, 1, timeout); |
|
|
|