-
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
HTTP element HEADER is longer than the (1024 * (80 + 32)) allowed length #179
Comments
I have the same, I couldn't diagnose it; I've temporarily switched to |
What version of ruby? I'm not able to diagnose the issue at preset. |
@evanphx MRI 1.9.3 |
Same p194 Sent from my Galaxy S3.
|
Is this still happening? I was never able to replicate the issue. |
I moved away from Puma, Evan. Please feel free to close it, I'll come and reopen whenever I can reproduce, if ever! |
MRI 2.0.0p195 with puma 2.2.2 on rails 3.2.12 does not show the issue. Testing some other combos. |
Still an issue with MRI 1.9.3:
|
@betelgeuse What was the request you sent? |
The same as in original report. On 6.7.2013, at 7.39, Evan Phoenix notifications@github.com wrote:
|
I'm facing the same problem in a Sinatra application. In my environment the issue only happens when I require the Here's an application that reproduces the problem: https://github.com/samflores/puma_issue_179 |
My app also loads rugged so maybe that is not a coincidence. On 18.7.2013, at 19.17, Samuel Flores notifications@github.com wrote:
|
It was not a coincidence. Rugged loads an extension which contains the symbol http_parser_init. This is the same symbol name that puma's parser uses. And because dynamic linking is a pain in the ass, when puma invoked http_parser_init, it didn't invoke it's own function by that name but the one that was loaded from rugged. Those 2 functions obviously don't do the same thing and thus the struct was corrupt for puma and it resulted in this obscure error. Morale of the story: beware dynamic linking. |
Thanks for the quick solution! ❤️ ❤️ |
I am not using rugged but my server raises the same error when sending a post request, it's curious because this happens only when the request contains a full base64 code of a file. Any suggestions? Full error:
|
I’m running into the same issue as @mgharbik |
@brianlaw033 This is a really old issue, please open a new one with a reproduction case. |
I have the same problem: 2018-08-24 12:11:06 -0300: HTTP parse error, malformed request (): #<Puma::HttpParserError: HTTP element HEADER is longer than the (1024 * (80 + 32)) allowed length (was 115340)> Yes, I'm receiving large headers.. Can I solve this? Thanks! |
Did you happen to run a workaround for these long GET requests? |
Trying puma on my rails 3.1.8 app I get:
The request is just a simple request with curl so the headers shouldn't be too long:
The text was updated successfully, but these errors were encountered: