Skip to content

Fix HTTP/2 push frame test#16343

Merged
chrisvest merged 3 commits into
netty:4.2from
chrisvest:4.2-h2-push-test
Feb 25, 2026
Merged

Fix HTTP/2 push frame test#16343
chrisvest merged 3 commits into
netty:4.2from
chrisvest:4.2-h2-push-test

Conversation

@chrisvest
Copy link
Copy Markdown
Member

Motivation:
The test fails on macOS because the server gets bound to the "any" address, and then returns that as its local address, which is correct but not something the client can connect to directly.

Modification:
Make the server only bind to localhost, which clients can connect to directly. This also prevents the test from temporarily exposing a port to the local network.

Result:
Test now passing on macOS.

Motivation:
The test fails on macOS because the server gets bound to the "any" address, and then returns that as its local address, which is correct but not something the client can connect to directly.

Modification:
Make the server only bind to localhost, which clients _can_ connect to directly.
This also prevents the test from temporarily exposing a port to the local network.

Result:
Test now passing on macOS.
@chrisvest chrisvest added this to the 4.2.11.Final milestone Feb 24, 2026
@chrisvest chrisvest added needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. labels Feb 24, 2026
@chrisvest
Copy link
Copy Markdown
Member Author

Build failures are flaky tests we're already investigating. Merging.

@chrisvest chrisvest merged commit bb5f61b into netty:4.2 Feb 25, 2026
16 of 19 checks passed
@netty-project-bot
Copy link
Copy Markdown
Contributor

Could not create auto-port PR.
Got conflicts when cherry-picking onto 5.0.

@chrisvest chrisvest deleted the 4.2-h2-push-test branch February 25, 2026 01:33
netty-project-bot pushed a commit that referenced this pull request Feb 25, 2026
Motivation:
The test fails on macOS because the server gets bound to the "any"
address, and then returns that as its local address, which is correct
but not something the client can connect to directly.

Modification:
Make the server only bind to localhost, which clients _can_ connect to
directly. This also prevents the test from temporarily exposing a port
to the local network.

Result:
Test now passing on macOS.

(cherry picked from commit bb5f61b)
@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port PR for 4.1: #16353

@github-actions github-actions Bot removed the needs-cherry-pick-4.1 This PR should be cherry-picked to 4.1 once merged. label Feb 25, 2026
chrisvest added a commit to chrisvest/netty that referenced this pull request Feb 25, 2026
Motivation:
The test fails on macOS because the server gets bound to the "any"
address, and then returns that as its local address, which is correct
but not something the client can connect to directly.

Modification:
Make the server only bind to localhost, which clients _can_ connect to
directly. This also prevents the test from temporarily exposing a port
to the local network.

Result:
Test now passing on macOS.

(cherry picked from commit bb5f61b)
@chrisvest
Copy link
Copy Markdown
Member Author

PR for 5.0: #16354

@chrisvest chrisvest removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Feb 25, 2026
normanmaurer pushed a commit that referenced this pull request Feb 25, 2026
Auto-port of #16343 to 4.1
Cherry-picked commit: bb5f61b

---
Motivation:
The test fails on macOS because the server gets bound to the "any"
address, and then returns that as its local address, which is correct
but not something the client can connect to directly.

Modification:
Make the server only bind to localhost, which clients _can_ connect to
directly. This also prevents the test from temporarily exposing a port
to the local network.

Result:
Test now passing on macOS.

Co-authored-by: Chris Vest <[email protected]>
normanmaurer pushed a commit that referenced this pull request Feb 25, 2026
Motivation:
The test fails on macOS because the server gets bound to the "any"
address, and then returns that as its local address, which is correct
but not something the client can connect to directly.

Modification:
Make the server only bind to localhost, which clients _can_ connect to
directly. This also prevents the test from temporarily exposing a port
to the local network.

Result:
Test now passing on macOS.

(cherry picked from commit bb5f61b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants