FinishedRequestTimings.WasSocketReused 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.
Returns whether the socket was reused from a previous request.
[Android.Runtime.Register("wasSocketReused", "()Z", "", ApiSince=37)]
public bool WasSocketReused();
[<Android.Runtime.Register("wasSocketReused", "()Z", "", ApiSince=37)>]
member this.WasSocketReused : unit -> bool
Returns
true if a socket has been reused.
- Attributes
Remarks
Returns whether the socket was reused from a previous request. Cases where this can happen include: reusing an idle socket that was used to complete a previous HTTP/1 request; multiplexing streams on a single HTTP/2 or QUIC connection.
Note that when a socket is reused, then DNS, connect and SSL timings are meaningless and undefined, as the request did not go through any of these stages.
Android reference for android.net.http.FinishedRequestTimings.wasSocketReused.
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.