Welcome! Log In Create A New Profile

Advanced

Strange prepending of 0 to response

Maxwell Lamb
February 01, 2011 05:18AM
Hi All,

Sorry that my first posting here is a support request/bug report, but I've gotta start somewhere!

So - basically, we're seeing responses occasionally (not always - in fact, quite infrequently) coming back with a 0 prepended to the entire response - before the headers.

This means that the response received by the browser ends up looking like

************
0

HTTP/1.1 200 OK
Server: nginx/0.8.53
Date: Tue, 01 Feb 2011 09:07:27 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: blu-session-id=2baf936adc11f79aad72827d46fd31aa; path=/; HttpOnly
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified: Tue, 01 Feb 2011 09:07:27 GMT
Cache-Control: no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0
Pragma: no-cache
p3p: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
Content-Encoding: gzip

and then a load of gzip'd data.
*************

This of course breaks all sorts of behaviour. We initially thought it was coming from HttpProxyModule, however after reconfiguring to serve certain assets directly from disk, rather than via the proxy, we saw the same issue repeating itself, meaning that it's probably independent from the proxy module.

Has anyone seen this behaviour before? Any ideas on where it's coming from?

Thanks in advance!

Maxwell_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Strange prepending of 0 to response

Maxwell Lamb February 01, 2011 05:18AM

Re: Strange prepending of 0 to response

Maxim Dounin February 01, 2011 05:54AM

Re: Strange prepending of 0 to response

Maxwell Lamb February 01, 2011 06:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 193
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready