Språk

QuicOptions.Builder.SetIdleConnectionTimeout(Duration) Method

Definition

Sets the maximum idle time for a connection.

[Android.Runtime.Register("setIdleConnectionTimeout", "(Ljava/time/Duration;)Landroid/net/http/QuicOptions$Builder;", "", ApiSince=34)]
public Android.Net.Http.QuicOptions.Builder SetIdleConnectionTimeout(Java.Time.Duration idleConnectionTimeout);
[<Android.Runtime.Register("setIdleConnectionTimeout", "(Ljava/time/Duration;)Landroid/net/http/QuicOptions$Builder;", "", ApiSince=34)>]
member this.SetIdleConnectionTimeout : Java.Time.Duration -> Android.Net.Http.QuicOptions.Builder

Parameters

idleConnectionTimeout
Duration

Returns

the builder for chaining. This value cannot be null.

Attributes

Remarks

Sets the maximum idle time for a connection. The actual value for the idle timeout is the minimum of this value and the server's and is negotiated during the handshake. Thus, it only applies after the handshake has completed. If no activity is detected on the connection for the set duration, the connection is closed.

See RFC 9114, section 5.1 for more details.

Android reference for android.net.http.QuicOptions.Builder.setIdleConnectionTimeout.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to