Skip to content

[4.4] Fix driver stuck on RecursionError on COMMIT SUCCESS - #1203

Merged
robsdedude merged 1 commit into
neo4j:4.4from
robsdedude:fix/driver-stuck-on-recursion-error-in-commit-success-4.4
Jun 5, 2025
Merged

robsdedude merged 1 commit into
neo4j:4.4from
robsdedude:fix/driver-stuck-on-recursion-error-in-commit-success-4.4

Conversation

@robsdedude

Copy link
Copy Markdown
Member

The driver could get stuck when the result summary was so deeply nested that it caused an RecursionError. It would also get stuck on certain protocol violations in the same place (e.g., unknown PackStream tag). However, the latter is much more unlikely to occur.

This patch will make the driver ditch the connection when it's not able to properly read a message for unexpected reasons and let the error bubble up.

Backport of: #1192

The driver could get stuck when the result summary was so deeply nested that it
caused an `RecursionError`. It would also get stuck on certain protocol
violations in the same place (e.g., unknown PackStream tag). However, the
latter is much more unlikely to occur.

This patch will make the driver ditch the connection when it's not able to
properly read a message for unexpected reasons and let the error bubble up.

@MaxAake MaxAake 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.

🍒 👴🏻

@robsdedude
robsdedude merged commit 28f4a83 into neo4j:4.4 Jun 5, 2025
@robsdedude
robsdedude deleted the fix/driver-stuck-on-recursion-error-in-commit-success-4.4 branch June 5, 2025 12:04
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