From 1371c87c34755ad82a77543617e056c96614ead9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= 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 git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3009 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 1 + src/chunk.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 4abb1870..f109a63f 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ NEWS - 1.4.37 * [mod_proxy] remove debug log line from error log (fixes #2659) * [mod_dirlisting] fix dir-listing.set-footer not showing + * fix out-of-filedescriptors when uploading "large" files (fixes #2660, thx rmilecki) - 1.4.36 - 2015-07-26 * use keep-alive timeout while waiting for HTTP headers; use always the read timeout while waiting for the HTTP body diff --git a/src/chunk.c b/src/chunk.c index 38edbb56..0d7f6b69 100644 --- a/src/chunk.c +++ b/src/chunk.c @@ -432,7 +432,7 @@ static int chunkqueue_append_to_tempfile(server *srv, chunkqueue *dest, const ch * */ 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) {