Skip to content

Extract UDP native endpoint route slots - #1190

Open
Weidong Cui (wdcui) wants to merge 1 commit into
uliteboxfrom
wdcui/ulitebox/udp-native-endpoint-slots
Open

Extract UDP native endpoint route slots#1190
Weidong Cui (wdcui) wants to merge 1 commit into
uliteboxfrom
wdcui/ulitebox/udp-native-endpoint-slots

Conversation

@wdcui

Copy link
Copy Markdown
Member

This PR extracts the Linux broker's native UDP endpoint lifecycle behind route-aware slots while preserving the existing external-only behavior. Each endpoint now owns its route and slot identity, descriptor, epoll token and generation, readiness latches, write-blocked state, and sequenced native error state; staging, replacement, retirement, rearming, send, receive, and status handling all use that shared endpoint model. Connected sockets retain only their selected route, unconnected sends keep the existing lazy endpoint reuse and source-port preservation, stale events cannot affect replacement endpoints, and staging failures roll back endpoint and token state. Only the external route is instantiated, so this adds no gateway, policy, configuration, CLI, or observable routing behavior while preparing the lifecycle seam needed by the follow-up gateway-routing PR.

Colocate native UDP endpoint readiness, errors, epoll identity, and lifecycle state behind route-aware slots while preserving the existing external-only behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: b5a1a347-37a8-4246-8bbc-306590921475
@github-actions

Copy link
Copy Markdown

🤖 SemverChecks 🤖 No breaking API changes detected

Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.

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.

1 participant