Skip to content

Retire broker platform sockets explicitly - #1160

Merged
Weidong Cui (wdcui) merged 5 commits into
uliteboxfrom
wdcui/ulitebox/broker-socket-lifecycle-seams
Aug 13, 2026
Merged

Retire broker platform sockets explicitly#1160
Weidong Cui (wdcui) merged 5 commits into
uliteboxfrom
wdcui/ulitebox/broker-socket-lifecycle-seams

Conversation

@wdcui

@wdcui Weidong Cui (wdcui) commented Aug 12, 2026

Copy link
Copy Markdown
Member

This PR adds an explicit synchronous, idempotent PlatformSocket::retire contract so broker core can end platform socket authority even when a provider retains another Arc. The Linux implementation uses one shared pending/active/retiring/retired lifecycle state to coordinate reactor activation, prevent retired sockets from being installed, close exactly once, and make concurrent callers wait for reactor acknowledgement.

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

Copilot-Session: b5a1a347-37a8-4246-8bbc-306590921475
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: b5a1a347-37a8-4246-8bbc-306590921475
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: b5a1a347-37a8-4246-8bbc-306590921475
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: b5a1a347-37a8-4246-8bbc-306590921475
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: b5a1a347-37a8-4246-8bbc-306590921475
@wdcui
Weidong Cui (wdcui) force-pushed the wdcui/ulitebox/broker-socket-lifecycle-seams branch from f05ae93 to 5ce0bbf Compare August 13, 2026 20:19
@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.

@wdcui
Weidong Cui (wdcui) added this pull request to the merge queue Aug 13, 2026
Merged via the queue into ulitebox with commit 0c7520f Aug 13, 2026
7 checks passed
@wdcui
Weidong Cui (wdcui) deleted the wdcui/ulitebox/broker-socket-lifecycle-seams branch August 13, 2026 20:29
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