Project

General

Profile

How to increase content length of response

Added by maspai over 4 years ago

I use lighttpd v1.4.45-1 on Debian 9 with default config except server.username and server.groupname.
My problem is incomplete HTML response, with Content-Length response header says 65528 while the HTML response string stops inside javascript section instead of body and html closing tags.
Is there any config to increase the length?


Replies (3)

RE: How to increase content length of response - Added by gstrauss over 4 years ago

lighttpd supports much, much larger responses, so your conclusion that this is a problem with lighttpd is unfounded.

Try accessing lighttpd by another means, e.g. curl or wget or another browser to see that lighttpd serves the page just fine. Trying accessing lighttpd locally on the server.

It is possible that there is a misbehaving proxy between lighttpd and your browser, but the problem is more likely the javascript than anything else.

RE: How to increase content length of response - Added by maspai over 4 years ago

I don't know if it's related to proxy or something, since I don't have this issue with Xampp's Apache either with Chrome, Chromium, or Firefox.
I use lighttpd locally in my Debian PC for development and our production uses Nginx without the issue either.
I'm still trying to stay with lighttpd since I love the performance.

RE: How to increase content length of response - Added by gstrauss over 4 years ago

Please perform some of the basic tests described above where you test with different clients contacting lighttpd, both remote clients and local clients on same server as lighttpd, and see if you can reproduce the problem. If it works with some clients but not others, the problem is likely some place other than lighttpd.

If you test with nginx on your development PC instead of lighttpd, does the problem go away? That would suggest that lighttpd is doing something differently than nginx, which is something worth a closer look.

    (1-3/3)