QuicOptions.Builder.SetIdleConnectionTimeout(Duration) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.