Skip to content

Implement db idle connections with a default SetConnMaxLifetime #262

@carlosms

Description

@carlosms

PR #261 was needed because after an idle time of >60s the next query was always failing with Query Failed - invalid connection.

The quick fix was to set the max number of idle connections to 0, but his negates the purpose of having a connection pool. We should have a reasonable default for SetConnMaxLifetime. If the connection expiration time can be configured in gitbase, maybe we should also have an option in gitbase-web.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions