Skip to content

Fixing calling #on_headers_complete two times when parsing chunked requests #1

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

Merged
merged 1 commit into from
Nov 1, 2017

Conversation

HoneyryderChuck
Copy link

Fixes tmm1/http_parser.rb#52 .

As demonstrated by the script in the issue, the #on_headers_complete is being called two times for such cases. I've singled it out to this line. I don't know if this affects tests (I currently don't have ant installed), so I hope it fixes the issue in a clean way.

…chunk (this is triggering on headers callback two times)
@tmm1
Copy link
Owner

tmm1 commented Oct 7, 2017

Definitely looks like a bug. You should submit this patch to the upstream repository, not my fork.

@HoneyryderChuck
Copy link
Author

Just did:a2800276#6

However, it might take some time to get updated, and your fork is the one being submitted.

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

Successfully merging this pull request may close these issues.

header callback gets called 2 times (JRUBY)
2 participants