Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
tmm1 merged 1 commit intotmm1:mastertmm1/http-parser.java:masterfrom
HoneyryderChuck:double_on_headersHoneyryderChuck/http-parser.java:double_on_headersCopy head branch name to clipboard
Nov 1, 2017
Merged

Fixing calling #on_headers_complete two times when parsing chunked requests#1
tmm1 merged 1 commit intotmm1:mastertmm1/http-parser.java:masterfrom
HoneyryderChuck:double_on_headersHoneyryderChuck/http-parser.java:double_on_headersCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.