On 8 December 2014 at 16:52, Jean-Baptiste Quenot <[email protected]> wrote: > Hello fellow UWSGI supporters, > > I'm struggling with an issue in my PHP software (namely Pimcore). > > The PHP stuff is served through an Haproxy -> Nginx -> UWSGI stack that runs > without a hitch since 18 months. > > A few days ago, after a Pimcore software update to version 2.3.0, users > reported corrupted file downloads, and I noticed something weird with > Content-Length.
> Content-Length: 2 Afaik, neither uwsgi, nor php, nor nginx add the content-length header by themselves (and a quick test confirms it for me on uwsgi 2.0.8 + PHP/5.6.3). So probably it's Pimcore that mangles something. The difference in the bytes transffered in the logs from uwsgi and nginx comes because nginx also counts the bytes used for the http chunked transfer. Take me a while to get it, the same thing, with http/1.0 and 1.1: GET / => generated 81742 bytes in 3 msecs 127.0.0.1 - - [08/Dec/2014:19:35:51 +0000] "GET / HTTP/1.1" 200 81835 "-" "curl/7.39.0" 127.0.0.1 - - [08/Dec/2014:19:39:56 +0000] "GET / HTTP/1.0" 200 81742 "-" "curl/7.39.0" -- damjan _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
