Repository navigation
fix: raise fd limits and coalesce accept resource errors - #2076
Merged
Merged
Conversation
This was referenced Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Servers launched directly or in Docker can inherit a 1024-fd soft limit. With many agents this leaves too little room for sockets and transient I/O; accept failures then generate repeated tracebacks.
Related issue: #2060 — #2060
Companion connection-management fix: TencentCloud/octop-memory#19. It bounds SQLite connections per backend and shares PostgreSQL business/checkpoint pools across agents (8+4 sessions per process and connection configuration). Raising NOFILE alone does not solve PostgreSQL max_connections. Octop's dependency can be updated after the memory package is released.
Target branch
developType of change
Test plan
make all RUN='uv run --offline --no-sync' PYTEST_JOBS=4: 4765 passed, 32 skipped; format/lint/typecheck passed.make precommit: 4766 passed, 66 skipped; dashboard build passed.Local validation ran on macOS. Linux, Windows and live-test CI checks passed. fnOS hardware has not been directly tested.
Checklist
CHANGELOG.md