neo4j / neo4j-python-driver

Neo4j Bolt driver for Python
https://neo4j.com/docs/api/python-driver/current/
Other
893 stars 187 forks source link

Harden driver against unexpected RESET responses #1006

Closed robsdedude closed 8 months ago

robsdedude commented 8 months ago

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.