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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle OpenSSL v3 EOF errors #1107

Merged
merged 1 commit into from Jul 1, 2022
Merged

Conversation

casperisfine
Copy link

Fix: #1106

When Ruby is compiled against OpenSSL V3, if an SSL connection is closed without sending a close_notify, a OpenSSL::SSL::SSLError will be raised.

I tested this manually, it works s expected. Unfortunately we don't have SSL setup on CI, and it's a big pain to do (I did it for redis-client), so I'm tempted to ship with just a manual test, or maybe just a mock? 馃槥

Fix: redis#1106

When Ruby is compiled against OpenSSL V3, if an SSL connection
is closed without sending a `close_notify`, a `OpenSSL::SSL::SSLError`
will be raised.
@davidrunger
Copy link

I deployed this branch to production using heroku-22 1.5 hours ago. No errors this time! 馃憤 馃帀 (Previously, with the released redis gem version 4.7.0, I'd see multiple "unexpected eof while reading" errors per hour when using heroku-22.)

@brent-yearone
Copy link

I ran into this problem on Heroku last week, and worked around it by setting the redis-side connection timeouts to 25 hours. Thanks a bunch for the fix! 馃榿

@byroot byroot merged commit 6b4b3e8 into redis:master Jul 1, 2022
@ezekg
Copy link

ezekg commented Jul 1, 2022

Been running 4.7.1 in production on heroku-22 and everything seems to be good now. 馃憤

@yashka713
Copy link

yashka713 commented Dec 21, 2023

Today we are faced with

OpenSSL::SSL::SSLError SSL_read: unexpected eof while reading

Our current Redis Gem version is "4.8.1". But Heroku version is heroku-22. What could be the reason for this error?

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.

OpenSSL::SSL::SSLError: SSL_read: unexpected eof while reading
6 participants