Skip to content

Handle OpenSSL::SSL::SSLError in connection manager#1057

Merged
petergoldstein merged 1 commit into
mainfrom
handle-ssl-errors-in-connection-manager
Jan 20, 2026
Merged

Handle OpenSSL::SSL::SSLError in connection manager#1057
petergoldstein merged 1 commit into
mainfrom
handle-ssl-errors-in-connection-manager

Conversation

@petergoldstein

Copy link
Copy Markdown
Owner

Add SSL error handling to read/write operations so that transient SSL errors (like "SSL_read: unexpected eof while reading") trigger automatic reconnection and retry, similar to how EOFError and SystemCallError are handled.

SSL errors during initial connection (handshake failures, certificate verification) continue to propagate as configuration errors.

Fixes #1045

Add SSL error handling to read/write operations so that transient SSL
errors (like "SSL_read: unexpected eof while reading") trigger automatic
reconnection and retry, similar to how EOFError and SystemCallError are
handled.

SSL errors during initial connection (handshake failures, certificate
verification) continue to propagate as configuration errors.

Fixes #1045

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@petergoldstein petergoldstein merged commit 3aae91b into main Jan 20, 2026
49 of 50 checks passed
@petergoldstein petergoldstein deleted the handle-ssl-errors-in-connection-manager branch January 26, 2026 15:20
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

1 participant