Skip to content

Don't handle raw socket after it's wrapped in connection #530

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

Merged

Conversation

robsdedude
Copy link
Member

When the connection to the server is lost during or right after sending HELLO, the driver will attempt to get the address from a closed socket which causes an OSError. There is no need to handle the raw socket after a successful handshake anyway as it will be wrapped in a BOLT connection object that already logs networks errors and takes care of the underlying socket.

@robsdedude robsdedude requested a review from technige April 7, 2021 15:40
@robsdedude robsdedude merged commit 6619a51 into neo4j:4.3 Apr 9, 2021
@robsdedude robsdedude deleted the fix-log-message-error-on-closed-socket branch April 9, 2021 15:38
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.

2 participants