Skip to content

feat(proxy): bound accepted client connections - #191

Open
gakonst wants to merge 1 commit into
omjadas:mainfrom
gakonst:feat/bounded-proxy-connections
Open

feat(proxy): bound accepted client connections#191
gakonst wants to merge 1 commit into
omjadas:mainfrom
gakonst:feat/bounded-proxy-connections

Conversation

@gakonst

@gakonst gakonst commented Jul 24, 2026

Copy link
Copy Markdown

Adds an opt-in with_max_concurrent_connections(NonZeroUsize) proxy builder setting.

The permit is acquired before accept(), so excess clients remain in the TCP listener backlog instead of consuming a server-side file descriptor. The permit is held for the full connection task and the wait remains responsive to graceful shutdown.

The default remains unchanged (None, unbounded accepted connections).

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.

1 participant