Skip to content

Expose RPC max round trip latency in performRpc#1023

Open
1egoman wants to merge 7 commits into
mainfrom
expose-max-round-trip-latency
Open

Expose RPC max round trip latency in performRpc#1023
1egoman wants to merge 7 commits into
mainfrom
expose-max-round-trip-latency

Conversation

@1egoman
Copy link
Copy Markdown
Contributor

@1egoman 1egoman commented May 28, 2026

Exposes a new maxRoundTripLatency parameter on LocalParticipant.performRpc (via a new performRpc(destinationIdentity:method:payload:responseTimeout:maxRoundTripLatency:) overload) so that a caller can configure the amount of time they'd like to be able to tolerate between a RPC request being enqueued and a RPCRequest's ACK comes back from the remote participant.

I expect this to be a fairly uncommonly tweaked value, but exposing it means that a client can be configured to tolerate situations where RPC requests are backed up behind other messages due to webrtc head of line blocking on the data channel, and RPC requests are timing out before actually being able to be sent via webrtc.

Related android change: livekit/client-sdk-android#953

@1egoman 1egoman changed the title Expose max round trip latency Expose RPC max round trip latency in performRpc May 28, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

⚠️ This PR does not contain any files in the .changes directory.

Comment thread Sources/LiveKit/Participant/LocalParticipant+RPC.swift
@1egoman 1egoman force-pushed the expose-max-round-trip-latency branch from 99e9fa6 to 7ec59c6 Compare May 28, 2026 20:17
@pblazej
Copy link
Copy Markdown
Contributor

pblazej commented May 29, 2026

Could you revert protobuf changes? It's failing due to an unrelated change in swift-protobufs (root cause is #1018)

@1egoman
Copy link
Copy Markdown
Contributor Author

1egoman commented May 29, 2026

Reverted in 8477bc9

@1egoman
Copy link
Copy Markdown
Contributor Author

1egoman commented May 29, 2026

@pblazej Assuming that the ci not fully passing is fine due to your previously surfaced point, anything else you'd like to see on this before it could be merged / released?

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.

2 participants