mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 13:11:33 +00:00
better freebsd sendfile support
This commit is contained in:
+4
-2
@@ -57,8 +57,10 @@ ssize_t uwsgi_do_sendfile(int sockfd, int filefd, size_t filesize, size_t chunk,
|
||||
}
|
||||
|
||||
if (sf_ret) {
|
||||
uwsgi_error("sendfile()");
|
||||
return 0;
|
||||
if (errno != EAGAIN) {
|
||||
uwsgi_error("sendfile()");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
return sf_len;
|
||||
|
||||
Reference in New Issue
Block a user