Skip to content

Conversation

@avsej
Copy link
Member

@avsej avsej commented Dec 6, 2024

In some cases, when the extension is configured aggressively close persistent connections (e.g. with couchbase.max_persistent=0 and couchbase.persistent_timeout=0), the connections might be considered expired and scheduled for destruction even if the application has references to them.

This patch changes this behavior to skip such connection, and destroy them later, when the reference counter reaches zero.

In some cases, when the extension is configured aggressively close
persistent connections (e.g. with `couchbase.max_persistent=0` and
`couchbase.persistent_timeout=0`), the connections might be considered
expired and scheduled for destruction even if the application has
references to them.

This patch changes this behavior to skip such connection, and destroy
them later, when the reference counter reaches zero.
@avsej avsej merged commit 6ba2d52 into couchbase:main Dec 9, 2024
132 of 141 checks passed
@avsej avsej deleted the PCBC-1018-do-not-destroy-persistent-connection-if-it-has-references branch December 9, 2024 16:47
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.

2 participants