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

Don't call SSL_shutdown if the connection has not been fully established #95

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

bensheldon
Copy link
Contributor

During network problems we have seen a uptick in Trilogy::SSLError: trilogy_query_recv: SSL Error: shutdown while in init errors.

It seems like a solution is to ensure that the shutdown only happens after the connection has been fully established: openssl/openssl#710

Copy link
Contributor

@matthewd matthewd left a comment

Choose a reason for hiding this comment

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

I've definitely seen this happen occasionally in the gem's tests, too. Nice!

@bensheldon bensheldon added the bug Something isn't working label Jun 30, 2023
@bensheldon bensheldon merged commit 93038bc into main Jun 30, 2023
12 checks passed
@bensheldon bensheldon deleted the bensheldon/ssl_shutdown branch June 30, 2023 18:37
bensheldon added a commit that referenced this pull request Jun 30, 2023
Don't call SSL_shutdown if the connection has not been fully established
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants