Skip to content

mcp-http: raise the soft open-files limit at startup - #55

Open
tonvi-agentes[bot] wants to merge 1 commit into
mainfrom
agente/limite-ficheros-mcp-http
Open

tonvi-agentes[bot] wants to merge 1 commit into
mainfrom
agente/limite-ficheros-mcp-http

Conversation

@tonvi-agentes

@tonvi-agentes tonvi-agentes Bot commented Nov 27, 2026

Copy link
Copy Markdown

A burst of connections, per-tenant SQLite stores and live-call rooms can exhaust a container's default soft open-files limit (often 1024). Then accept() fails with EMFILE and every new LiveKit room connection fails with no native root CA certificates found ... Too many open files.

run_http now raises the soft limit to the hard one (cap 65536) and logs it. Test included.

🤖 Generated with Claude Code

A burst of connections, tenant stores and live-call rooms can exhaust a
container's default soft limit (often 1024): accept() then fails with EMFILE
and every new LiveKit connection with 'no native root CA certificates found'.
Raise the soft limit to the hard one (cap 65536) and log it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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