Skip to content

Harden driver against unexpected RESET responses - #1006

Merged
robsdedude merged 2 commits into
neo4j:5.0from
robsdedude:harden-agains-failing-reset
Dec 27, 2023
Merged

robsdedude merged 2 commits into
neo4j:5.0from
robsdedude:harden-agains-failing-reset

Conversation

@robsdedude

Copy link
Copy Markdown
Member

The server has been observed to reply with FAILURE and IGNORED to RESET requests. The former is according to spec and the driver should drop the connection (which it didn't), the latter isn't.

The right combination of those two unexpected responses at the right time could get the driver stuck in an infinite loop.

This change makes the driver drop the connection in either case to gracefully handle the situation.

The server has been observed to reply with `FAILURE` and `IGNORED` to `RESET`
requests. The former is according to spec and the driver should drop the
connection (which it didn't), the latter isn't.

The right combination of those two unexpected responses at the right time could
get the driver stuck in an infinite loop.

This change makes the driver drop the connection in either case to gracefully
handle the situation.

@bigmontz bigmontz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🦝

(Unit tests are more than welcome :D )

@robsdedude
robsdedude merged commit 23cce6a into neo4j:5.0 Dec 27, 2023
@robsdedude
robsdedude deleted the harden-agains-failing-reset branch December 27, 2023 07:52
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