Problem
The server may eventually hit socket: too many open files during long-running operation or under higher connection counts.
Current context
- The original report suspected repeated outbound dials / connection buildup
- A historical comment suggested adding read deadlines, but the issue was never documented as a concrete reproducible reliability task
Impact
- The process becomes unstable under load
- New connections may fail once file descriptors are exhausted
What is still missing
- A reliable reproduction method
- Confirmation whether the root cause is connection leak, missing timeout / close handling, or OS ulimit exhaustion
Suggested next steps
- Reproduce with sustained connection load
- Inspect active file descriptors and connection lifetime
- Add timeouts / idle cleanup if needed
- Document required
ulimit -n guidance if the issue is partly environmental
Acceptance criteria
- Reproduction steps are documented
- The process no longer leaks descriptors under the tested scenario, or the remaining operational limits are documented clearly
Problem
The server may eventually hit
socket: too many open filesduring long-running operation or under higher connection counts.Current context
Impact
What is still missing
Suggested next steps
ulimit -nguidance if the issue is partly environmentalAcceptance criteria