Forum

Limit Request Body

Pippo
5 September 2007, 04:16
Apache uses "LimitRequestBody" to specify the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body.
What is the equivalent directive in hiawatha?


Thanks in advance
Hugo Leisink
5 September 2007, 10:10
For normal requests: MaxRequestSize = n (size in kilobytes)
For PUT requests: MaxUploadSize = n (size in megabytes)
Pippo
5 September 2007, 16:57
When i try to upload a file using a web based application i can't upload file greater than 62.82 KB.

I've configured php.ini to upload big files but nothing to do.
I think there is a problem with hiawatha.

Using apache the web based application works well and i can upload big file size.

Any solution?


Thanks in advance

Hugo Leisink
5 September 2007, 19:46
You should use
Binding {
...
MaxRequestSize = <size in kilobytes>
}

for each binding you want to use to upload files.
Pippo
5 September 2007, 21:55
It still doesn't work! The upper limit is about 63 KB.

I also check php.ini...all is set to upload big files.

I don't understand what is wrong!

Binding {
Port = 80
MaxRequestSize = 4096
MaxUploadSize = 5
...
}
Binding {
Port = 443
MaxRequestSize = 4096
MaxUploadSize = 5
...
}


:?::?::?::?::?::?::?:
Hugo Leisink
6 September 2007, 01:23
Use ErrorLogfile to specify an error logfile. What do you see in the error logfile?
Pippo
6 September 2007, 01:48
I think i've found the error.

If i disable FASTcgi upload is successful (i can upload large file)

If i enable FASTcgi the upload upper limit is about 63 KB.


Hiawatha bug?

Hugo Leisink
6 September 2007, 01:50
When you adjusted the uploadsize in php.ini, did you restart the PHP FastCGI daemon? Otherwise, your PHP FastCGI daemon will still be running with the old php.ini settings.
Pippo
6 September 2007, 01:59
Yes, I did.

It seems that upload of large files works well via ExecuteCGI but not via Fastcgi.

Hugo Leisink
6 September 2007, 09:27
Please let me know what the logfiles (SystemLogfile, AccessLogfile and ErrorLogfile) say. I need more information than only "it doesn't work".
Pippo
6 September 2007, 21:42
Sorry for my late.

I've enabled FASTcgi and i've tried to upload a large file (1,34 MB).

The error.log is empty.

The system.log contains only single line which indicate hiawatha is started.

The access.log is more rich:

192.168.1.1	Thu 06 Sep 2007 19:04:09 +0200	401	0		GET / HTTP/1.1	Host: mydomain.com	"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"	"Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"	"Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3"	Accept-Encoding: gzip,deflate	"Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"	Keep-Alive: 300	Connection: keep-alive	Cookie: PFN_anchoCorpo=	

192.168.1.1 Thu 06 Sep 2007 19:04:12 +0200 200 2865 username GET / HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Cookie: PFN_anchoCorpo=

192.168.1.1 Thu 06 Sep 2007 19:04:12 +0200 200 13646 username GET /estilos/pfn/estilos.css HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: text/css,*/*;q=0.1" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/ Cookie: PFN_anchoCorpo=

192.168.1.1 Thu 06 Sep 2007 19:04:12 +0200 200 367 username GET /favicon.ico HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Cookie: PFN_anchoCorpo=

192.168.1.1 Thu 06 Sep 2007 19:04:12 +0200 200 6268 username GET /js/scripts.js HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" Accept: */* "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/ Cookie: PFN_anchoCorpo=

192.168.1.1 Thu 06 Sep 2007 19:04:12 +0200 200 16401 username GET /js/html_decoder.js HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" Accept: */* "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/ Cookie: PFN_anchoCorpo=

192.168.1.1 Thu 06 Sep 2007 19:04:12 +0200 200 870 username GET /estilos/pfn/imx/renomear.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/ Cookie: PFN_anchoCorpo=

192.168.1.1 Thu 06 Sep 2007 19:04:12 +0200 200 755 username GET /estilos/pfn/imx/comprimir.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/ Cookie: PFN_anchoCorpo=

192.168.1.1 Thu 06 Sep 2007 19:04:12 +0200 200 439 username GET /estilos/pfn/imx/fondo.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/estilos/pfn/estilos.css Cookie: PFN_anchoCorpo=

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 558 username POST /comprobar.php HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/ Cookie: PFN_anchoCorpo= Content-Type: application/x-www-form-urlencoded Content-Length: 76

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 413 username GET /menu.php?PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/ "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 22004 username GET /navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/ "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 1293 username GET /estilos/pfn/imx/actualizar.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 419 username GET /estilos/pfn/imx/ancho_corpo.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 737 username GET /estilos/pfn/imx/crear_dir.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 545 username GET /estilos/pfn/imx/novo_arq.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 767 username GET /estilos/pfn/imx/subir_arq.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 1238 username GET /estilos/pfn/imx/subir_url.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 1141 username GET /estilos/pfn/imx/ver_imaxes.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 861 username GET /estilos/pfn/imx/arbore.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 873 username GET /estilos/pfn/imx/preferencias_usuario.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 1126 username GET /estilos/pfn/imx/buscar.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 1789 username GET /estilos/pfn/ico/dir.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 1228 username GET /estilos/pfn/imx/info.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/estilos/pfn/estilos.css "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 5469 username GET /estilos/pfn/imx/logo.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/estilos/pfn/estilos.css "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 817 username GET /estilos/pfn/imx/copiar.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/estilos/pfn/estilos.css "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 767 username GET /estilos/pfn/imx/eliminar.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/estilos/pfn/estilos.css "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 885 username GET /estilos/pfn/imx/mover.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/estilos/pfn/estilos.css "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:25 +0200 200 998 username GET /estilos/pfn/imx/permisos.png HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/estilos/pfn/estilos.css "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:29 +0200 200 16187 username GET /accion.php?PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b&dir=.&accion=subir_arq HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/navega.php?id=1&PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:39 +0200 200 15084 username GET /estilos/pfn/imx/subir_url.gif HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/estilos/pfn/estilos.css "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b"

192.168.1.1 Thu 06 Sep 2007 19:04:41 +0200 200 22345 username POST /accion.php?PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b&dir=. HTTP/1.1 Host: mydomain.com "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" "Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3" Accept-Encoding: gzip,deflate "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" Keep-Alive: 300 Connection: keep-alive Referer: https://mydomain.com/accion.php?PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b&dir=.&accion=subir_arq "Cookie: PFN_anchoCorpo=; PHPSESSID=9fd3dce2c9d2507a350cfeea05ff390b" "Content-Type: multipart/form-data; boundary=---------------------------165932581018723" Content-Length: 1349300

Hugo Leisink
7 September 2007, 14:05
I've found the bug! In send.c, on line 497 'size' has to be changed into 'FCGI_BUFFER_SIZE':

padding = set_padding(fcgi_buffer, false);
if (send_directly(fcgi_buffer->sock, (char*)fcgi_buffer->data, 8 ) == -1) {
return -1;
} else if (send_directly(fcgi_buffer->sock, buffer, FCGI_BUFFER_SIZE) == -1) {
return -1;
}

Thanks for informing me about the problem!
Pippo
7 September 2007, 16:38
You are great!

Do you provide a new debian package release?
Hugo Leisink
7 September 2007, 16:44
I'm still working on some strange issues with OpenBSD, so I will release a new version when I have those fixed. But if you send me an e-mail (hugo at leisink dot net) and I'll reply with a new Debian package.
This topic has been closed.