Skip to content

Conversation

@Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Apr 16, 2025

Motivation

The NIOHTTP1TestServer had a weird codepath where we could hit errors configuring the channel pipeline, but we weren't sure why. I've investigated, and this happens because a Channel that had been accepted earlier was closed while we were waiting to start handling it. This is totally benign: the code works just fine in that situation.

To be clear, though, let's document the behaviour and add a test.

Modifications

  • Code comment to explain the behaviour
  • Added a regression test

Result

More confidence.

@Lukasa Lukasa added semver/none No version bump required. 🔨 semver/patch No public API change. and removed semver/none No version bump required. labels Apr 16, 2025
Motivation

The NIOHTTP1TestServer had a weird codepath where we could hit errors
configuring the channel pipeline, but we weren't sure why. I've
investigated, and this happens because a Channel that had been
accepted earlier was closed while we were waiting to start handling
it. This is totally benign: the code works just fine in that
situation.

To be clear, though, let's document the behaviour and add a test.

Modifications

- Code comment to explain the behaviour
- Added a regression test

Result

More confidence.
@Lukasa Lukasa enabled auto-merge (squash) April 16, 2025 15:10
@Lukasa Lukasa merged commit 6789c58 into apple:main Apr 16, 2025
44 of 45 checks passed
@Lukasa Lukasa deleted the cb-test-errors branch April 16, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants