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

HTTP::Server: don't double-close response #7908

Merged
merged 1 commit into from
Jun 21, 2019

Conversation

asterite
Copy link
Member

Fixes #7832

Sorry this has no tests but it's really hard to test.

@asterite asterite added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:networking labels Jun 20, 2019
@asterite asterite force-pushed the bug/http-server-leftover branch from 6bde0f1 to cb7bccd Compare June 20, 2019 15:21
@asterite asterite changed the title HTTP::Server: don't double-closed response HTTP::Server: don't double-close response Jun 20, 2019
@jkthorne
Copy link
Contributor

This seems like a good candidate for a test.

@jkthorne
Copy link
Contributor

I cannot make a pr into your branch. But I added one spec.
master...wontruefree:bug/http-server-leftover

@asterite
Copy link
Member Author

asterite commented Jun 20, 2019

Does that spec pass if you remove my diff?

@asterite
Copy link
Member Author

@wontruefree The spec passes even without my check. It's really hard to test it.

@jkthorne
Copy link
Contributor

Maybe it is not worth writing a spec for.
I just thought it would be nice to have covered.

@asterite asterite merged commit c8ae957 into crystal-lang:master Jun 21, 2019
@asterite asterite deleted the bug/http-server-leftover branch June 21, 2019 10:24
@bcardiff bcardiff added this to the 0.30.0 milestone Jul 24, 2019
dnamsons pushed a commit to dnamsons/crystal that referenced this pull request Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTP::Server Leftovers after chunking
4 participants