Skip to content

fix: preserve default database connection reuse - #2836

Open
praxzy wants to merge 1 commit into
supabase:masterfrom
praxzy:fix/auth-idle-pool
Open

praxzy wants to merge 1 commit into
supabase:masterfrom
praxzy:fix/auth-idle-pool

Conversation

@praxzy

@praxzy praxzy commented Sep 27, 2026

Copy link
Copy Markdown

What kind of change does this PR introduce?

bug fix

What is the current behavior?

When GOTRUE_DB_MAX_IDLE_POOL_SIZE is unset or zero, ApplyConfig calls
SetMaxIdleConns(0), disabling connection reuse. This can exhaust ephemeral
ports under load.

Fixes #2831

What is the new behavior?

A zero idle-pool size resolves to two idle connections, restoring the
default behavior used by pop during initial connection setup.

@praxzy
praxzy requested a review from a team as a code owner September 27, 2026 11:19

This branch has not been deployed

No deployments
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.

Unset GOTRUE_DB_MAX_IDLE_POOL_SIZE disables connection reuse since #2177, exhausting ephemeral ports under load

1 participant