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

Http2 fix #260

Closed
wants to merge 4 commits into from
Closed

Http2 fix #260

wants to merge 4 commits into from

Conversation

tatsuhiro-t
Copy link
Contributor

Thank you for great effort to add HTTP/2 multiplex to libcurl!
This PR includes couple of fixes I found while playing around http2-multiplex branch.

This commit fixes the bug that streams get stuck if stream gets some
DATA, and stream->closed becomes true at the same time.  Previously,
in this condition, after we processed DATA, we are going to try to
read data from underlying transport, but there is no data, and gets
EAGAIN.  There was no code path to evaludate stream->closed.
Previously when we do pause because of out of buffer, we just throw
away unread data in connection buffer.  This just broke protocol
framing, and I saw occasional FRAME_SIZE_ERROR.  This commit fix this
issue by remembering how much data read, and in the next iteration, we
process remaining data.
@tatsuhiro-t
Copy link
Contributor Author

I added 4th commit 37c7271, to address another issue.

@bagder
Copy link
Member

bagder commented May 7, 2015

Thanks a lot, merged now!

@bagder bagder closed this May 7, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants