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

Rescue OpenSSL::SSL::Error in HTTP::Server#handle_client #11146

Conversation

straight-shoota
Copy link
Member

Resolves #11122

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:networking kind:regression Something that used to correctly work but no longer works labels Aug 27, 2021
@straight-shoota straight-shoota changed the title Rescue OpenSSL::SSL::Error in HTTP::Server#handle_client Rescue OpenSSL::SSL::Error in HTTP::Server#handle_client Aug 27, 2021
{% begin %}
begin
io.close
rescue IO::Error{% unless flag?(:without_openssl) %} | OpenSSL::SSL::Error{% end %}
Copy link
Member

Choose a reason for hiding this comment

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

the unless ... without got me blinking for a couple of seconds :-D

@straight-shoota straight-shoota added this to the 1.2.0 milestone Aug 31, 2021
@straight-shoota straight-shoota merged commit cadc4b3 into crystal-lang:master Sep 2, 2021
@straight-shoota straight-shoota deleted the fix/http-server-handle_client-ssl_error branch September 2, 2021 13:32
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. kind:regression Something that used to correctly work but no longer works topic:stdlib:networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenSSL::SSL::Error leaking from HTTP::Server#handle_client
2 participants