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.
Signed-off-by: cong <q1875486458@gmail.com>
@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 <q1875486458@gmail.com>
Signed-off-by: Lin Moskovitch <lin.moskovitch@sap.com>
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 <q1875486458@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
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 <zirain2009@gmail.com>

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

Signed-off-by: Andrew Moreland <andy@andymoreland.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* 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 <zhaohuabing@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix ipFamily not set in UDPListener (#7313)

fix: set ipfamily in udpistener (#7312)

Signed-off-by: cong <q1875486458@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* coalesce updates to reduce intermediate updates (#7328)

* coalesce updates to reduce redundant processing in subscription handler

Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

* retain order

Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

* keep intermediate delete updates

Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

* minor wording

Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

* treat delete as normal operations

Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

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

Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

* address comments

Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

* fix test

Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

---------

Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix: port typo (#7397)

Signed-off-by: cong <q1875486458@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>

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

Signed-off-by: zirain <zirain2009@gmail.com>

* 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 <zhaohuabing@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* 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 <boikot@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>

* fix gen after cherry-pick

Signed-off-by: zirain <zirain2009@gmail.com>

* fix watchutil test

Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>

---------

Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: Andrew Moreland <andy@andymoreland.com>
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Signed-off-by: cong <q1875486458@gmail.com>
Signed-off-by: Gonzalo Serrano <boikot@gmail.com>
Co-authored-by: Rudrakh Panigrahi <rudrakh97@gmail.com>
Co-authored-by: Andrew Moreland <andy@andymo.org>
Co-authored-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
Co-authored-by: 聪 <q1875486458@gmail.com>
Co-authored-by: Gonzalo Serrano <boikot@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment