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

[4.4] Roll back data written to output buffer on packing failure #641

Conversation

robsdedude
Copy link
Member

While packing data to packstream, several errors can occur (integers that
are out of bounds, unknown data types, etc.). On packing failure, the driver
should never send the half-finished packed data over the wire. This will most
likely cause the server to close the connection as the data will be corrupt.

Back port of #640

While packing data to packstream, several errors can occur (integers that
are out of bounds, unknown data types, etc.). On packing failure, the driver
should never send the half-finished packed data over the wire. This will most
likely cause the server to close the connection as the data will be corrupt.
@robsdedude robsdedude changed the title Roll back data written to output buffer on packing failure [4.4] Roll back data written to output buffer on packing failure Jan 12, 2022
@robsdedude robsdedude merged commit 0f2c40b into neo4j:4.4 Jan 13, 2022
@robsdedude robsdedude deleted the fix-send-half-finished-message-on-pack-failure-4.4 branch January 13, 2022 11:01
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.

1 participant