neo4j / neo4j-python-driver

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

[4.4] Fix pool closing connections too aggressively #1038

Closed robsdedude closed 3 months ago

robsdedude commented 3 months ago

Whenever a new routing table was fetched, the pool would close all connections to servers that were not part of the routing table. However, it might well be, that a missing server is present still in the routing table for another database. Hence, the pool now checks the routing tables for all databases before deciding which connections are no longer needed.g

Backport of https://github.com/neo4j/neo4j-python-driver/pull/955