Support EAGAIN in fetch_writev
Reviewed by: des Approved by: des
This commit is contained in:
parent
8ff2bd98d6
commit
4472d6e1df
@ -1110,6 +1110,8 @@ fetch_writev(conn_t *conn, struct iovec *iov, int iovcnt)
|
|||||||
errno = 0;
|
errno = 0;
|
||||||
pfd.revents = 0;
|
pfd.revents = 0;
|
||||||
if (poll(&pfd, 1, deltams) < 0) {
|
if (poll(&pfd, 1, deltams) < 0) {
|
||||||
|
if (errno == EAGAIN)
|
||||||
|
continue;
|
||||||
if (errno == EINTR && fetchRestartCalls)
|
if (errno == EINTR && fetchRestartCalls)
|
||||||
continue;
|
continue;
|
||||||
return (-1);
|
return (-1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user