Mailing List Archive

[Bug 63839] DeflateBufferSize has no effect on Content-Length header, docs say it should
https://bz.apache.org/bugzilla/show_bug.cgi?id=63839

Joe Orton <jorton@redhat.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
OS| |All

--- Comment #1 from Joe Orton <jorton@redhat.com> ---
Content-Length will be set by the content-length filter in cases where the
entire response content can be determined without buffering - earlier 2.4.x
releases did more buffering than was safe so this may have changed in recent
releases. A simple test has got C-L still generated in at least this case:

# dd if=/dev/zero of=/var/www/html/1K0.html bs=1024 count=1
# curl --compressed -v http://localhost/1K0.html > /dev/null
...
< Content-Encoding: gzip
< Content-Length: 29

So it might depend how mod_wsgi generates the response.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63839] DeflateBufferSize has no effect on Content-Length header, docs say it should [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=63839

--- Comment #2 from Joe Orton <jorton@redhat.com> ---
You could try inserting the BUFFER output filter before mod_deflate

AddOutputFilterByType BUFFER;DEFLATE text/html

if that fixes the problem it's a problem in how mod_wsgi generates content, you
may need some manual buffering somewhere to fix it. Note that mod_buffer
buffers 128K by default which may or may not be optimal for your application.

https://httpd.apache.org/docs/2.4/mod/mod_buffer.html

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63839] DeflateBufferSize has no effect on Content-Length header, docs say it should [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=63839

Michael Schlenker <msc@contact.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID

--- Comment #3 from Michael Schlenker <msc@contact.de> ---
I can confirm it works with static files.
So there must be something broken on the mod_wsgi side.

Thanks for the hint about mod_buffer.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org