neo4j / neo4j-go-driver

Neo4j Bolt Driver for Go
Apache License 2.0
482 stars 68 forks source link

Add `ConnectionLivenessCheckTimeout` configuration #551

Closed StephenCathcart closed 7 months ago

StephenCathcart commented 7 months ago

This configuration defines the duration that the connection may be idle before needing to perform a liveness check on acquiring from the pool.

driver, err := neo4j.NewDriverWithContext("neo4j://localhost:7687", neo4j.BasicAuth("neo4j", "password", ""), func(config *neo4j.Config) {
    config.ConnectionLivenessCheckTimeout = 2 * time.Second
})

Check the API docs for more information.

StephenCathcart commented 7 months ago

[go] Implement ADR 021: liveness check timeout