Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some responses aren't returning correctly #215

Closed
dracos opened this issue Nov 24, 2015 · 3 comments
Closed

Some responses aren't returning correctly #215

dracos opened this issue Nov 24, 2015 · 3 comments

Comments

@dracos
Copy link
Member

dracos commented Nov 24, 2015

e.g. /areas/LGW.html when asked for gzipped version is 10 bytes :-/

@dracos
Copy link
Member Author

dracos commented Nov 24, 2015

The response from Django/web server is fine, and contains the whole content. The response through Varnish then only contains a few bytes. Turning off do_stream fixes the issue, but of course prevents streaming. There's no issue if gzipping is not present.

@dracos
Copy link
Member Author

dracos commented Nov 24, 2015

Moved gzipping out of project, added it to varnish. Thought it had fixed it, but it now doesn't appear to have. I don't understand what is happening here :-/

$ curl -H"Accept-Encoding: gzip" -H"Host: mapit.mysociety.org" http://mapit.mysociety.org.46.43.39.77.xip.io/areas/LGW.html|wc
      24     285   10580
$ curl -H"Accept-Encoding: gzip" -H"Host: mapit.mysociety.org" http://mapit.mysociety.org/areas/LGW.html|wc
       0       1      10

The strace of varnish is the same in both cases, the output appears to be identical in both cases.

@dracos
Copy link
Member Author

dracos commented Nov 24, 2015

The mapit one goes via a varnish-based director load balancer on another server first; that's clearly causing the issue in some way. For now I've just disabled streaming.

@dracos dracos closed this as completed Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant