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

Handle 1xx status codes better by not closing the connection #32

Merged
1 commit merged into from
Feb 1, 2011

Conversation

timshadel
Copy link
Contributor

The 100 and 101 status codes need the connection to remain open in order to comply with their descriptions in the spec. See sections 10.1 and section 8.2.3. There may be other places in the spec that support this idea as well.

Thanks! :-)

Both the 100 and 101 status codes require that the connection to the
server remain open. The 100 status code is used to tell the client that
the server is still receiving its request, and will continue to read
request input on the connection. The 101 status code is used to upgrade
the existing connection to another protocol, and specifically is NOT
used to upgrade a separate connection. Therefore, the connection must
remain open after this response in order to facilitate that.

RDoc and tests updates included.

Signed-off-by: Tim Shadel <github@timshadel.com>
@macournoyer
Copy link
Owner

Awesome! Pulled!

Thanks Tim.

This pull request was closed.
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.

None yet

2 participants