1 instantiation of Http2Connection
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
251
Http2Connection http2Connection = new
Http2Connection
(this, stream, activity, remoteEndPoint);
43 references to Http2Connection
System.Net.Http (43)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (3)
246
_http2RequestQueue = new RequestQueue<
Http2Connection
?>();
412
HttpConnectionWaiter<
Http2Connection
?>? http2ConnectionWaiter = null;
456
if (!TryGetPooledHttp2Connection(request, out
Http2Connection
? connection, out http2ConnectionWaiter) &&
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (23)
21
private List<
Http2Connection
>? _availableHttp2Connections;
27
private RequestQueue<
Http2Connection
?> _http2RequestQueue;
37
/// Used by <see cref="
Http2Connection
"/> to test ALTSVC frames for our origin.
64
private bool TryGetPooledHttp2Connection(HttpRequestMessage request, [NotNullWhen(true)] out
Http2Connection
? connection, out HttpConnectionWaiter<
Http2Connection
?>? waiter)
167
RequestQueue<
Http2Connection
?>.QueueItem queueItem = _http2RequestQueue.PeekNextRequestForConnectionAttempt();
172
private async Task InjectNewHttp2ConnectionAsync(RequestQueue<
Http2Connection
?>.QueueItem queueItem)
180
Http2Connection
? connection = null;
182
HttpConnectionWaiter<
Http2Connection
?> waiter = queueItem.Waiter;
247
private async ValueTask<
Http2Connection
> ConstructHttp2ConnectionAsync(Stream stream, HttpRequestMessage request, Activity? activity, IPEndPoint? remoteEndPoint, CancellationToken cancellationToken)
251
Http2Connection
http2Connection = new Http2Connection(this, stream, activity, remoteEndPoint);
271
private void HandleHttp2ConnectionFailure(HttpConnectionWaiter<
Http2Connection
?> requestWaiter, Exception e)
295
HttpConnectionWaiter<
Http2Connection
?>? waiter = null;
364
private void ReturnHttp2Connection(
Http2Connection
connection, bool isNewConnection, HttpConnectionWaiter<
Http2Connection
?>? initialRequestWaiter = null)
390
HttpConnectionWaiter<
Http2Connection
?>? waiter = null;
430
_availableHttp2Connections ??= new List<
Http2Connection
>();
498
private void DisableHttp2Connection(
Http2Connection
connection)
504
async Task DisableHttp2ConnectionAsync(
Http2Connection
connection)
536
public void InvalidateHttp2Connection(
Http2Connection
connection)
569
Http2Connection
[]? localHttp2Connections;
578
foreach (
Http2Connection
http2Connection in localHttp2Connections)
585
private static int ScavengeHttp2ConnectionList(List<
Http2Connection
> list, ref List<HttpConnectionBase>? toDispose, long nowTicks, TimeSpan pooledConnectionLifetime, TimeSpan pooledConnectionIdleTimeout)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (1)
29
Debug.Assert(typeof(T) == typeof(HttpConnection) || typeof(T) == typeof(
Http2Connection
));
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
1187
return Task.FromException(new ObjectDisposedException(nameof(
Http2Connection
)));
2145
public sealed override string ToString() => $"{nameof(
Http2Connection
)}({_pool})"; // Description for diagnostic purposes
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (3)
33
private readonly
Http2Connection
_connection;
92
public Http2Stream(HttpRequestMessage request,
Http2Connection
connection)
160
public
Http2Connection
Connection => _connection;
System\Net\Http\SocketsHttpHandler\Http2StreamWindowManager.cs (7)
23
public Http2StreamWindowManager(
Http2Connection
connection, Http2Stream stream)
80
Http2Connection
connection = stream.Connection;
96
Http2Connection
connection = stream.Connection;
195
internal void OnInitialSettingsAckReceived(
Http2Connection
connection)
202
internal void OnDataOrHeadersReceived(
Http2Connection
connection, bool sendWindowUpdateBeforePing)
229
internal void OnPingAckReceived(long payload,
Http2Connection
connection)
269
private void RefreshRtt(
Http2Connection
connection)
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (4)
45
Debug.Assert(this is HttpConnection or
Http2Connection
or Http3Connection);
67
this is
Http2Connection
? "2" :
92
else if (this is
Http2Connection
) HttpTelemetry.Log.Http20ConnectionEstablished(Id, scheme, host, port, remoteEndPoint);
107
else if (this is
Http2Connection
) HttpTelemetry.Log.Http20ConnectionClosed(Id);