-
Notifications
You must be signed in to change notification settings - Fork 62
fix: SSL_shutdown on incomplete handshake #431
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
Conversation
Signed-off-by: kostas <kostas@dragonflydb.io>
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #431 +/- ##
==========================================
+ Coverage 77.60% 78.14% +0.54%
==========================================
Files 103 112 +9
Lines 7824 9848 +2024
==========================================
+ Hits 6072 7696 +1624
- Misses 1752 2152 +400 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
util/tls/tls_engine.cc
Outdated
state_ |= FATAL_ERROR; | ||
queue_error = ERR_get_error(); | ||
LOG(WARNING) << "SSL protocol error " << ERROR_DETAILS; | ||
LOG_EVERY_T(WARNING, 30) << "SSL protocol error " << ERROR_DETAILS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think LOG_EVERY_T(WARNING, 1)
should be good enough.
util/tls/tls_engine.cc
Outdated
default: | ||
queue_error = ERR_get_error(); | ||
state_ |= FATAL_ERROR; | ||
LOG(WARNING) << "Unexpected SSL error " << ssl_error << " " << ERROR_DETAILS; | ||
LOG_EVERY_T(WARNING, 30) << "Unexpected SSL error " << ssl_error << " " << ERROR_DETAILS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
* fix: SSL_shutdown on incomplete handshake --------- Signed-off-by: kostas <kostas@dragonflydb.io>
We should not call
SSL_shutdown
if the handshake is not complete.Furthermore reduce the
LOG(INFO)
because they can flood and steal cpu time.Fixes: #430