Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PCBC-1018: Do not destroy expired connection if it still being used #200

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants