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

Prevent infinite loop if reader is closed but parser state is still Partial #69

Closed
wants to merge 1 commit into from

Conversation

dwwoelfel
Copy link

@dwwoelfel dwwoelfel commented Nov 3, 2018

My attempt to fix the infinite loop on an invalid http request referenced in #68

@dwwoelfel dwwoelfel changed the title Prevent infinite loop if reader is closed but state is partial Prevent infinite loop if reader is closed but parser state is still `Partial Nov 4, 2018
@dwwoelfel dwwoelfel changed the title Prevent infinite loop if reader is closed but parser state is still `Partial Prevent infinite loop if reader is closed but parser state is still Partial Nov 4, 2018
@seliopou
Copy link
Member

This isn't quite right as it won't finish the parse, even though it should result in an error. I have a fix in another branch that I'll send a PR for shortly. I need to update the repo to OPAM 2 first so that CI will pass.

@seliopou
Copy link
Member

Closing in favor of #71.

@seliopou seliopou closed this Nov 17, 2018
Lupus pushed a commit to Lupus/httpaf that referenced this pull request Dec 8, 2020
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.

3 participants