Skip to content

Adds XPC sessions with disconnect handlers.#1524

Merged
jglogan merged 1 commit into
apple:mainfrom
jglogan:xpc-session
May 11, 2026
Merged

Adds XPC sessions with disconnect handlers.#1524
jglogan merged 1 commit into
apple:mainfrom
jglogan:xpc-session

Conversation

@jglogan
Copy link
Copy Markdown
Contributor

@jglogan jglogan commented May 8, 2026

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Fixes, IP leak, simplifies attachment allocation.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

- `RouteHandler` now accepts an additional
  `XPCServerSession` which include a disconnect
  handler.
- `XPCServer` configures a session for each
  client connection and passes it to every
  route handler.
- `XPCServer.route(fn:)` can be used to wrap
  existing route handlers that don't care
  about sessions.
- `XPCClient` adds functions to support
  client-side session handling.
- Update all existing routes.
@jglogan jglogan merged commit 1794afc into apple:main May 11, 2026
4 checks passed
@jglogan jglogan deleted the xpc-session branch May 11, 2026 22:57
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