diff --git a/src/os/src/detail/osFile.c b/src/os/src/detail/osFile.c index 6eb4515f3098f89991640d2fdee2b0aca47c1703..23fc88b8e1f5d4c0e2fe6b2140278b1e32d35abb 100644 --- a/src/os/src/detail/osFile.c +++ b/src/os/src/detail/osFile.c @@ -132,7 +132,7 @@ int64_t taosSendFile(int32_t dfd, int32_t sfd, int64_t *offset, int64_t size) { // if (leftbytes > 1000000000) leftbytes = 1000000000; sentbytes = sendfile(dfd, sfd, offset, leftbytes); if (sentbytes == -1) { - if (errno == EINTR) { + if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) { continue; } else { return -1;