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

ssl: c++: be verbose about SSL connection errors #807

Merged
merged 1 commit into from
Oct 5, 2017

Conversation

zOrg1331
Copy link
Contributor

This change allows more easy debugging of applications that use eventmachine (native mode) with SSL.
Example of the output:

139861096265472:error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol:s23_srvr.c:640:

@sodabrew
Copy link
Member

sodabrew commented Oct 5, 2017

Ideally we could pass those errors up inside of an Exception, if one would be generated from this type of error, or as a callback to a logging method that the user can provide.

But stderr is better than swallowing errors whole.

@zOrg1331
Copy link
Contributor Author

zOrg1331 commented Oct 5, 2017

I agree that exception is more preferrable, but those couple of exceptions in this file seems like placed "just to have an exception". :) There are several more situations to cover. What I proposed solves problem in my personal case. Generic fix is up to project team of course.

@sodabrew sodabrew merged commit dcec4a7 into eventmachine:master Oct 5, 2017
@sodabrew sodabrew added this to the v1.3.0 milestone Oct 5, 2017
sodabrew pushed a commit to sodabrew/eventmachine that referenced this pull request Apr 30, 2018
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