-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
2.0.0b1 showing request headers #148
Comments
Could I get a little info about the app? I'll need to reproduce the problem. If you can at least tell me what requests are made from the page that cause the problem that should help. Also, which browser did you use? |
weird. I can't reproduce this anymore. I'll keep using beta1 to see if the issue shows up again. |
I'm also experiencing this w/ my Rails app. It doesn't happen on every page load though. It's very intermittent. Here are a couple of screenshots. As you can see sometimes the raw HTML w/ the headers is spit out and others it seems to inject the headers in the page page. What information about my setup would be useful in tracking down the source of this? I'll start you off w/ my nginx config:
|
I don't suppose you'd let me run your rails app? 😸 I haven't yet been able to reproduce this and I've been through the request flow a few times and haven't been able to identify a place where it might happen. If you can let me run your rails app, I can promise to do it in private if you don't wish it to be publicly available. |
Certainly, though I haven't seen the issue when running my project locally. It only seems to happen on my linode server. I'm wondering if this is because locally I run
In any case my project is located at https://github.com/kyledecot/the-flow-skatepark. |
Can you share the safari html source of the page when that happens? It may help pinpoint the issue |
Case #1 https://www.evernote.com/shard/s222/sh/0ac8606b-ca14-4a1c-b035-c90c672f7f87/80896e6d533206a8b29d5c564cc9290b Case #2 https://www.evernote.com/shard/s222/sh/de4a3520-84f5-4bc7-a588-a105c4a430da/570c451fdfefc5077c80e1e44cec0881 I should also note that case #1 is much easier to reproduce (perhaps 1/5 page loads). Case #2 might only only happen every 20 page loads. |
Any progress on this issue? |
I have the same issue. I hope we can reproduce it so @evanphx has a place to look into. What i found so far is that it seems to happen when binding to a unix socket. |
OK I have put together a very small hello world rack app that demonstrates the problem. Have a look here: https://github.com/habermann24/pumabug To really reproduce it you should try listening on a socket and use nginx. The more text you add to config.ru's body output, the more HTTP header you will get :) I explicitly said "and use nginx" because this doesn't happen if you forward a TCP port to that socket with socat like this: update: interesting discovery: if i tell puma to use n minimum threads, then on the n+1's request i get the header. For example:
|
Sorry about the number of posts, but i think i found a solution to the bug. nginx uses HTTP 1.0 by default when proxying requests. So one needs to add the following to the nginx config:
I have no idea why this works yet and why it doesn't without those settings. Meanwhile i'm going to do some reading about the topic ;-) |
I found the bug. Will have a new release out today.
On Nov 16, 2012, at 1:57 PM, Jan notifications@github.com wrote:
|
That is awesome!!! My guess is it is exactly what's stated here under "The connection header": http://www2.research.att.com/~bala/papers/h0vh1.html Puma needs to remove the "hop-by-hop" headers that nginx sends, or something like that :-) On 16.11.2012, at 20:16, Evan Phoenix notifications@github.com wrote:
|
ext/nio4r: Switch to the libev 4 API
I just tried b1 in one of my applications and it's showing headers in the page
http://www.evernote.com/shard/s22/sh/9ac87138-1a86-4991-9b6b-4d95855eaf60/3b1bfae015d8779a37727a4050a597c3
update:
The text was updated successfully, but these errors were encountered: