Skip to content

Commit dc8cd03

Browse files
fix the comment and default value for responseTimeout (#161)
1 parent d6a49b6 commit dc8cd03

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Runtime/Scripts/Participant.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ public SetLocalAttributesInstruction SetAttributes(IDictionary<string, string> a
207207
/// - DestinationIdentity: The identity of the participant to call
208208
/// - Method: Name of the method to call (up to 64 bytes UTF-8)
209209
/// - Payload: String payload (max 15KiB UTF-8)
210-
/// - ResponseTimeout: Maximum time to wait for response (defaults to 10 seconds)</param>
210+
/// - ResponseTimeout: Maximum time to wait for response (defaults to 15 seconds)
211+
/// If a value less than 8 seconds is provided, it will be automatically clamped to 8 seconds
212+
/// to ensure sufficient time for round-trip latency buffering.</param>
211213
/// <returns>
212214
/// A <see cref="PerformRpcInstruction"/> that completes when the RPC call receives a response or errors.
213215
/// Check <see cref="PerformRpcInstruction.IsError"/> and access <see cref="PerformRpcInstruction.Payload"/>/<see cref="PerformRpcInstruction.Error"/> properties to handle the result.

Runtime/Scripts/Rpc.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ public class PerformRpcParams
2626
public string Payload { get; set; }
2727

2828
/// <summary>
29-
/// The maximum time to wait for a response from the remote participant. Default is 10 seconds.
29+
/// Timeout for receiving a response after the initial connection (in seconds).
30+
/// If a value less than 8s is provided, it will be automatically clamped to 8s
31+
/// to ensure sufficient time for round-trip latency buffering.
32+
/// Default is 15 seconds.
3033
/// </summary>
31-
public float ResponseTimeout { get; set; } = 10f;
34+
public float ResponseTimeout { get; set; } = 15f;
3235
}
3336

3437
/// <summary>

0 commit comments

Comments
 (0)