Skip to content

fix ipFamily not set in UDPListener#7313

Merged
arkodg merged 1 commit intoenvoyproxy:mainfrom
woodgear:fix/udplistener-ipfamily
Oct 23, 2025
Merged

fix ipFamily not set in UDPListener#7313
arkodg merged 1 commit intoenvoyproxy:mainfrom
woodgear:fix/udplistener-ipfamily

Conversation

@woodgear
Copy link
Copy Markdown
Contributor

@woodgear woodgear commented Oct 23, 2025

What type of PR is this?

  • "fix: fix fix ipFamily not set in UDPListener"

Which issue(s) this PR fixes:
Fixes #7312

used here.

if udpListener.IPFamily != nil && *udpListener.IPFamily == egv1a1.DualStack {

but not set here

https://github.com/woodgear/gateway/blob/59b2b29dbb27b22971fa3c51ef3b9039d989b61d/internal/gatewayapi/listener.go#L165

that will cause udproute could only listen on ipv4 or ipv6 not both.

Release Notes: ?

@woodgear woodgear requested a review from a team as a code owner October 23, 2025 05:21
@woodgear woodgear force-pushed the fix/udplistener-ipfamily branch from 54a81ad to 4dd955f Compare October 23, 2025 05:35
@woodgear
Copy link
Copy Markdown
Contributor Author

@zirain please talk look here.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.98%. Comparing base (59b2b29) to head (a965b71).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7313      +/-   ##
==========================================
- Coverage   71.08%   70.98%   -0.11%     
==========================================
  Files         229      229              
  Lines       41194    41195       +1     
==========================================
- Hits        29284    29242      -42     
- Misses      10187    10222      +35     
- Partials     1723     1731       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@woodgear woodgear force-pushed the fix/udplistener-ipfamily branch from 4dd955f to a965b71 Compare October 23, 2025 06:02
@arkodg arkodg merged commit 0ba1667 into envoyproxy:main Oct 23, 2025
32 checks passed
linmosko pushed a commit to linmosko/gateway that referenced this pull request Oct 27, 2025
fix: set ipfamily in udpistener (envoyproxy#7312)

Signed-off-by: cong <[email protected]>
Signed-off-by: Lin Moskovitch <[email protected]>
zirain pushed a commit to zirain/gateway that referenced this pull request Nov 14, 2025
fix: set ipfamily in udpistener (envoyproxy#7312)

Signed-off-by: cong <[email protected]>
Signed-off-by: zirain <[email protected]>
zirain added a commit that referenced this pull request Nov 14, 2025
* fix: bug in overlap detection of cert SANs (#7234)

Signed-off-by: zirain <[email protected]>

* fix(translator): Fix panic with request mirror + grpcroute (#6875)

Signed-off-by: Andrew Moreland <[email protected]>
Signed-off-by: zirain <[email protected]>

* fix: watch change for the ca cert in the Backend (#7294)

* watch change for the ca cert in the Backend

Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: zirain <[email protected]>

* fix ipFamily not set in UDPListener (#7313)

fix: set ipfamily in udpistener (#7312)

Signed-off-by: cong <[email protected]>
Signed-off-by: zirain <[email protected]>

* coalesce updates to reduce intermediate updates (#7328)

* coalesce updates to reduce redundant processing in subscription handler

Signed-off-by: Huabing Zhao <[email protected]>

* retain order

Signed-off-by: Huabing Zhao <[email protected]>

* keep intermediate delete updates

Signed-off-by: Huabing Zhao <[email protected]>

* minor wording

Signed-off-by: Huabing Zhao <[email protected]>

* treat delete as normal operations

Signed-off-by: Huabing Zhao <[email protected]>

* retain the original order of the last updates for each key

Signed-off-by: Huabing Zhao <[email protected]>

* address comments

Signed-off-by: Huabing Zhao <[email protected]>

* fix test

Signed-off-by: Huabing Zhao <[email protected]>

---------

Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: zirain <[email protected]>

* fix: port typo (#7397)

Signed-off-by: cong <[email protected]>
Signed-off-by: zirain <[email protected]>

* fix: validate EnvoyGateway configuration before reload (#7412)

Signed-off-by: zirain <[email protected]>

* fix: missing  jwt provider when jwt is configured on multiple listeners sharing the same port (#7337)

* fix jwt provider missing when jwt is configured at multiple ir listeners

Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: zirain <[email protected]>

* fix: memory leak (#7429)

Fix memory leak.

Two watchable.Maps were never closed when shutting down the provider:
- GatewayClassStatuses.Close() - missing in GatewayAPIStatuses.Close()
- BackendTrafficPolicyStatuses.Close() - missing in PolicyStatuses.Close()

Each unclosed map leaked 3 goroutines:
1. Internal watchable.Map.coalesce goroutine
2. HandleSubscription goroutine blocked on channel read
3. Error handler goroutine blocked on channel read

Signed-off-by: Gonzalo Serrano <[email protected]>
Signed-off-by: zirain <[email protected]>

* fix gen after cherry-pick

Signed-off-by: zirain <[email protected]>

* fix watchutil test

Signed-off-by: Huabing Zhao <[email protected]>

---------

Signed-off-by: zirain <[email protected]>
Signed-off-by: Andrew Moreland <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: cong <[email protected]>
Signed-off-by: Gonzalo Serrano <[email protected]>
Co-authored-by: Rudrakh Panigrahi <[email protected]>
Co-authored-by: Andrew Moreland <[email protected]>
Co-authored-by: Huabing (Robin) Zhao <[email protected]>
Co-authored-by: 聪 <[email protected]>
Co-authored-by: Gonzalo Serrano <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ipfamily not set in udplistener

3 participants