Skip to content

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

Merged
robsdedude merged 1 commit into
neo4j:4.3from
robsdedude:fix-log-message-error-on-closed-socket
Apr 9, 2021
Merged

robsdedude merged 1 commit into
neo4j:4.3from
robsdedude:fix-log-message-error-on-closed-socket

Conversation

@robsdedude

Copy link
Copy Markdown
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