From d9d51a7142b96c6e725644c8b4ef0f1e37dc62ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 7 Mar 2008 10:43:09 +0000 Subject: [PATCH] - verbose error when fcgi packet is too small Changed files: lighttpd-fcgi-verbose.patch -> 1.4 lighttpd.spec -> 1.247 --- lighttpd-fcgi-verbose.patch | 11 +++++++++++ lighttpd.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 lighttpd-fcgi-verbose.patch diff --git a/lighttpd-fcgi-verbose.patch b/lighttpd-fcgi-verbose.patch new file mode 100644 index 0000000..216fad4 --- /dev/null +++ b/lighttpd-fcgi-verbose.patch @@ -0,0 +1,11 @@ +--- lighttpd-1.4.18/src/mod_fastcgi.c~ 2008-03-07 12:34:01.000000000 +0200 ++++ lighttpd-1.4.18/src/mod_fastcgi.c 2008-03-07 12:34:04.082702348 +0200 +@@ -2352,7 +2352,7 @@ + /* no header */ + buffer_free(packet->b); + +- log_error_write(srv, __FILE__, __LINE__, "s", "FastCGI: header too small"); ++ log_error_write(srv, __FILE__, __LINE__, "sdsds", "FastCGI: header too small (", packet->b->used, " bytes < ", sizeof(FCGI_Header), " bytes)"); + return -1; + } + diff --git a/lighttpd.spec b/lighttpd.spec index 3614ba7..b500ddd 100644 --- a/lighttpd.spec +++ b/lighttpd.spec @@ -105,6 +105,7 @@ Patch0: %{name}-use_bin_sh.patch Patch1: %{name}-mod_evasive-status_code.patch Patch2: %{name}-mod_h264_streaming.patch Patch3: %{name}-branding.patch +Patch4: %{name}-fcgi-verbose.patch #Patchx: %{name}-mod_deflate.patch URL: http://www.lighttpd.net/ %{?with_xattr:BuildRequires: attr-devel} @@ -780,6 +781,7 @@ Plik monitrc do monitorowania serwera www lighttpd. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 # build mime.types.conf sh %{SOURCE6} /etc/mime.types -- 2.44.0