commit 2872ed64cc609f8449de3529f3e6db66151aa164
parent ad39db848e72054e1ecfae787ef5f24b8d25a12a
Author: Rafał Miłecki <zajec5@gmail.com>
Date: Thu, 13 Aug 2015 22:19:17 +0200
lighttpd: backport a fix for running out of filedescriptors
It was breaking uploads of files 4 MiB+. This patch fixes:
https://github.com/openwrt/packages/issues/1658
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat:
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/net/lighttpd/patches/001-fix-out-of-filedescriptors-when-uploading-large-file.patch b/net/lighttpd/patches/001-fix-out-of-filedescriptors-when-uploading-large-file.patch
@@ -0,0 +1,26 @@
+From: =?UTF-8?q?Stefan=20B=C3=BChler?= <stbuehler@web.de>
+Date: Thu, 13 Aug 2015 18:44:27 +0000
+Subject: [PATCH] fix out-of-filedescriptors when uploading "large" files
+ (fixes #2660, thx rmilecki)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Stefan Bühler <stbuehler@web.de>
+
+git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3009 152afb58-edef-0310-8abb-c4023f1b3aa9
+---
+ src/chunk.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/src/chunk.c
++++ b/src/chunk.c
+@@ -432,7 +432,7 @@ static int chunkqueue_append_to_tempfile
+ * */
+
+ if (NULL != dest->last
+- && FILE_CHUNK != dest->last->type
++ && FILE_CHUNK == dest->last->type
+ && dest->last->file.is_temp
+ && -1 != dest->last->file.fd
+ && 0 == dest->last->offset) {