1 write to _availableHttp3Connections
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
432
_availableHttp3Connections
??= new List<Http3Connection>();
27 references to _availableHttp3Connections
System.Net.Http (27)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
931
if (IsHttp3Supported() &&
_availableHttp3Connections
is not null)
934
toDispose.AddRange(
_availableHttp3Connections
);
935
_associatedHttp3ConnectionCount -=
_availableHttp3Connections
.Count;
936
_availableHttp3Connections
.Clear();
1007
if (IsHttp3Supported() &&
_availableHttp3Connections
is not null)
1009
int removed = ScavengeHttp3ConnectionList(
_availableHttp3Connections
, ref toDispose, nowTicks, pooledConnectionLifetime, pooledConnectionIdleTimeout);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (21)
147
int availableConnectionCount =
_availableHttp3Connections
?.Count ?? 0;
152
connection =
_availableHttp3Connections
![availableConnectionCount - 1];
185
int index =
_availableHttp3Connections
.IndexOf(connection);
189
_availableHttp3Connections
.RemoveAt(index);
219
int availableHttp3ConnectionCount =
_availableHttp3Connections
?.Count ?? 0;
376
Debug.Assert(
_availableHttp3Connections
is null || !
_availableHttp3Connections
.Contains(connection));
377
Debug.Assert(_associatedHttp3ConnectionCount > (
_availableHttp3Connections
?.Count ?? 0));
396
Debug.Assert(
_availableHttp3Connections
is null || !
_availableHttp3Connections
.Contains(connection), $"HTTP3 connection already in available list");
397
Debug.Assert(_associatedHttp3ConnectionCount > (
_availableHttp3Connections
?.Count ?? 0),
398
$"Expected _associatedHttp3ConnectionCount={_associatedHttp3ConnectionCount} > _availableHttp3Connections.Count={(
_availableHttp3Connections
?.Count ?? 0)}");
420
Debug.Assert((
_availableHttp3Connections
?.Count ?? 0) == 0, $"With {(
_availableHttp3Connections
?.Count ?? 0)} available HTTP3 connections, we shouldn't have a waiter.");
433
_availableHttp3Connections
.Add(connection);
510
Debug.Assert(
_availableHttp3Connections
is null || !
_availableHttp3Connections
.Contains(connection));
539
if (
_availableHttp3Connections
is not null)
541
Debug.Assert(_associatedHttp3ConnectionCount >=
_availableHttp3Connections
.Count);
543
int index =
_availableHttp3Connections
.IndexOf(connection);
547
_availableHttp3Connections
.RemoveAt(index);