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

Add additional error handling for failed connections. #379

Merged
merged 2 commits into from
Dec 16, 2021

Conversation

michael-lazar
Copy link
Contributor

Fixes #378

The previous PR #374 removed a blanket try...except OSError that was preventing sockets from being deallocated because self.sock.close() was never being reached.

As a side effect, it was discovered in that OSError might also be raised for TLS connections inside of self._shutdown_transport(). Rather than revert the previous change, this PR adds extra error handling so that SSL sockets that fail to unwrap because of a connection failure will still be appropriately closed.

@michael-lazar
Copy link
Contributor Author

working on fixing that test now

@auvipy auvipy merged commit 665e95b into celery:master Dec 16, 2021
@auvipy
Copy link
Member

auvipy commented Dec 16, 2021

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5.0.7 SSL connection problem
2 participants