Skip to content

[Bug]: aep278_http2_unread_responses_do_not_starve_independent_hooks fails on macOS with the default open-file limit #2052

Todo

Description

@Sakshitapkir03

Affected area

Build, packaging, or CI

Current behavior

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.

Activity

  1. efegokdemir commented on Dec 5, 2026

    @efegokdemir

    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.

  2. Sakshitapkir03 commented on Dec 5, 2026

    @Sakshitapkir03
    ContributorAuthor

    @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.

  3. willkill07 commented on Dec 6, 2026

    @willkill07
    Member

    @Sakshitapkir03 you can implement your proposed fix

  4. added
    Bug
    on Dec 6, 2026
  5. added this to the 1.0 milestone on Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Bug

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions