From 85617afa3fa2c7e141872320ff9ea7ed80776fbb Mon Sep 17 00:00:00 2001 From: shijing xian Date: Mon, 13 Oct 2025 14:56:01 -0700 Subject: [PATCH] Bump up RPC timeout to 7 seconds, 15s as total response time --- Sources/LiveKit/Participant/LocalParticipant+RPC.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/LiveKit/Participant/LocalParticipant+RPC.swift b/Sources/LiveKit/Participant/LocalParticipant+RPC.swift index 899b362a2..3a276386a 100644 --- a/Sources/LiveKit/Participant/LocalParticipant+RPC.swift +++ b/Sources/LiveKit/Participant/LocalParticipant+RPC.swift @@ -30,7 +30,7 @@ public extension LocalParticipant { func performRpc(destinationIdentity: Identity, method: String, payload: String, - responseTimeout: TimeInterval = 10) async throws -> String + responseTimeout: TimeInterval = 15) async throws -> String { let room = try requireRoom() @@ -39,7 +39,7 @@ public extension LocalParticipant { } let requestId = UUID().uuidString - let maxRoundTripLatency: TimeInterval = 2 + let maxRoundTripLatency: TimeInterval = 7 let effectiveTimeout = responseTimeout - maxRoundTripLatency try await publishRpcRequest(destinationIdentity: destinationIdentity,