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

when receiving a GOAWAY, allow earlier streams to still process #133

Merged
merged 1 commit into from
Oct 5, 2017

Conversation

seanmonstar
Copy link
Member

This is a first step to better GOAWAY support (cc #83). This patch will close all streams greater than the last stream ID in the GOAWAY frame, but allow streams less than to still finish.

@seanmonstar
Copy link
Member Author

Looks like this broke h2spec, expecting the connection to have closed, so I'll need to add the second step into this PR as well: detecting when the streams are finished and return the goaway + close.

@carllerche
Copy link
Collaborator

LGTM so far (minus h2spec failure)

Once all active streams have finished, send a GOAWAY back and close the
connection.
@seanmonstar
Copy link
Member Author

Updated to now look for when all active streams have finished, and responds with a new GOAWAY and shuts down.

Copy link
Collaborator

@carllerche carllerche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a quick skim and LGTM. If anyone else wants to review, go for it.

@seanmonstar seanmonstar merged commit ecd2764 into master Oct 5, 2017
@seanmonstar seanmonstar deleted the recv-go-away branch October 5, 2017 22:32
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.

2 participants