You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: aep278_http2_unread_responses_do_not_starve_independent_hooks fails on macOS with the default open-file limit #2052
On macOS, with the default open-file limit of 256, aep278_http2_unread_responses_do_not_starve_independent_hooks in nemo-relay-cli fails. The test server's listener.accept() panics (hook_pool_isolation_tests.rs:18), and the client then fails with:
hyper_util::client::legacy::Error(SendRequest, hyper::Error(Io, Os { code: 54, kind: ConnectionReset, message: "Connection reset by peer" }))
at hook_pool_isolation_tests.rs:96. Measured on this machine:
ulimit -n
Result
256
FAIL
512
PASS
768
PASS
1024
PASS
The test sends up to 128 requests and keeps their responses unread, so their connections stay open. #1728 reported the same cause for two other concurrency tests, and #1736 fixed it with ensure_open_file_limit. This test was added afterwards, in #1769, and does not call it.
Expected behavior
The test passes on macOS with the default open-file limit.
Steps to reproduce
ulimit -n 256
cargo nextest run -p nemo-relay-cli -E 'test(aep278_http2_unread_responses_do_not_starve_independent_hooks)'
Environment
NeMo Relay version or commit: main at 39765d2ec
OS and architecture: macOS 27.2.1, Apple Silicon (arm64)
Rust version: 1.96.1 (pinned by rust-toolchain.toml)
Python version: 3.12.15
Node.js version: v24.21.0
Go version: N/A (Go bindings not built)
Install/build command: cargo nextest run -p nemo-relay-cli
Impact
just test-rust fails on macOS with the default open-file limit, so contributors on macOS see this failure on every full run unless they raise the limit.
Proposed fix: call crate::test_support::ensure_open_file_limit((REQUESTS * 8) as u64) at the start of the test, as #1736 does for the other two tests, with REQUESTS = 128 replacing the loop bound.
I'd like to work on this and will open a PR once you're OK with the approach.
Hi Sakshitapkir03, I can take this on, but I saw that you planned to submit the fix once the approach was agreed. Are you still intending to work on it? If so, I’ll leave it with you; if not, I’d be happy to pick up the focused test change.
Activity
efegokdemir commentedon Dec 5, 2026
Hi Sakshitapkir03, I can take this on, but I saw that you planned to submit the fix once the approach was agreed. Are you still intending to work on it? If so, I’ll leave it with you; if not, I’d be happy to pick up the focused test change.
Sakshitapkir03 commentedon Dec 5, 2026
@efegokdemir Thank you for asking! Yes, I'm still planning to work on this, and I'll open the PR once a maintainer is OK with the approach.
willkill07 commentedon Dec 6, 2026
@Sakshitapkir03 you can implement your proposed fix