You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Controls whether we can use a fast path when returning connections to the pool.</summary>
74
+
/// <summary>Controls whether we can use a fast path when returning connections to the pool and skip calling into <see cref="ProcessHttp11RequestQueue(HttpConnection?)"/>.</summary>
/// <br/>- When returning a connection and observing that the request queue is not empty (<see cref="_http11RequestQueueIsEmptyAndNotDisposed"/> is <see langword="false"/>).
562
+
/// <br/>- After adding a request to the queue if we fail to obtain a connection from the queue.
563
+
/// <br/>- After scavenging or disposing the pool to ensure that any pending requests are handled or connections disposed.
564
+
/// <para>The method will attempt to match one request from the <see cref="_http11RequestQueue"/> to an available connection.
565
+
/// The <paramref name="connection"/> can either be provided as an argument (when returning a connection to the pool), or one will be rented from <see cref="_http11Connections"/>.
566
+
/// As we'll only process a single request, we are expecting the method to be called every time a request is enqueued, and every time a connection is returned while the request queue is not empty.</para>
567
+
/// <para>If the <see cref="_http11RequestQueue"/> becomes empty, this method will reset the <see cref="_http11RequestQueueIsEmptyAndNotDisposed"/> flag back to <see langword="true"/>,
568
+
/// such that returning connections will use the fast path again and skip calling into this method.</para>
569
+
/// <para>Notably, this method will not be called on the fast path as long as we have enough connections to handle all new requests.</para>
570
+
/// </summary>
571
+
/// <param name="connection">The connection to use for a pending request, or return to the pool.</param>
0 commit comments