summaryrefslogtreecommitdiff
path: root/www/lighttpd/files
diff options
context:
space:
mode:
Diffstat (limited to 'www/lighttpd/files')
-rw-r--r--www/lighttpd/files/patch-src__network_freebsd_sendfile.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/lighttpd/files/patch-src__network_freebsd_sendfile.c b/www/lighttpd/files/patch-src__network_freebsd_sendfile.c
new file mode 100644
index 000000000000..f823657de4c1
--- /dev/null
+++ b/www/lighttpd/files/patch-src__network_freebsd_sendfile.c
@@ -0,0 +1,14 @@
+#
+# Backport http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2403
+#
+--- src/network_freebsd_sendfile.c.orig 2009-02-24 11:05:06.000000000 -0300
++++ src/network_freebsd_sendfile.c 2009-02-24 11:12:15.000000000 -0300
+@@ -167,7 +167,7 @@
+ switch(errno) {
+ case EAGAIN:
+ case EINTR:
+- r = 0; /* try again later */
++ /* for EAGAIN and EINTR r still contains the sent bytes */
+ break;
+ case ENOTCONN:
+ return -2;