1 write to _pool
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (1)
47
_pool
= pool;
70 references to _pool
System.Net.Http (70)
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (1)
502
TimeSpan drainTime = _connection.
_pool
.Settings._maxResponseDrainTime;
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (1)
214
TimeSpan drainTime = _connection.
_pool
.Settings._maxResponseDrainTime;
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (24)
159
_keepAlivePingDelay = TimeSpanToMs(
_pool
.Settings._keepAlivePingDelay);
160
_keepAlivePingTimeout = TimeSpanToMs(
_pool
.Settings._keepAlivePingTimeout);
162
_keepAlivePingPolicy =
_pool
.Settings._keepAlivePingPolicy;
164
uint maxHeaderListSize =
_pool
._lastSeenHttp2MaxHeaderListSize;
213
BinaryPrimitives.WriteUInt32BigEndian(_outgoingBuffer.AvailableSpan, (uint)
_pool
.Settings._initialHttp2StreamWindowSize);
260
Debug.Assert(!
_pool
.HasSyncObjLock);
268
_pool
.InvalidateHttp2Connection(this);
280
Debug.Assert(!
_pool
.HasSyncObjLock);
303
Debug.Assert(!
_pool
.HasSyncObjLock);
334
Debug.Assert(!
_pool
.HasSyncObjLock);
751
if ((frameHeader.StreamId != 0 && originLength == 0) || (frameHeader.StreamId == 0 && span.Length >= originLength && span.Slice(0, originLength).SequenceEqual(
_pool
.Http2AltSvcOriginUri)))
758
_pool
.HandleAltSvc(new[] { altSvcHeaderValue }, null);
882
_pool
._lastSeenHttp2MaxHeaderListSize = _maxHeaderListSize;
1315
Debug.Assert(!
_pool
.HasSyncObjLock);
1415
HeaderEncodingSelector<HttpRequestMessage>? encodingSelector =
_pool
.Settings._requestHeaderEncodingSelector;
1489
WriteIndexedHeader(
_pool
.IsSecure ? H2StaticTable.SchemeHttps : H2StaticTable.SchemeHttp, ref headerBuffer);
1497
WriteBytes(
_pool
._http2EncodedAuthorityHostHeader, ref headerBuffer);
1524
Encoding? protocolEncoding =
_pool
.Settings._requestHeaderEncodingSelector?.Invoke(":protocol", request);
1533
if (
_pool
.Settings._useCookies)
1535
string cookiesFromContainer =
_pool
.Settings._cookieContainer!.GetCookieHeader(request.RequestUri);
1539
Encoding? cookieEncoding =
_pool
.Settings._requestHeaderEncodingSelector?.Invoke(KnownHeaders.Cookie.Name, request);
1986
Debug.Assert(!
_pool
.HasSyncObjLock);
2145
public sealed override string ToString() => $"{nameof(Http2Connection)}({
_pool
})"; // Description for diagnostic purposes
2152
_pool
?.GetHashCode() ?? 0, // pool ID
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (6)
106
_headerBudgetRemaining = connection.
_pool
.Settings.MaxResponseHeadersByteLength;
353
}, this, _connection.
_pool
.Settings._expect100ContinueTimeout, Timeout.InfiniteTimeSpan).ConfigureAwait(false))
609
throw new HttpRequestException(HttpRequestError.ConfigurationLimitExceeded, SR.Format(SR.net_http_response_headers_exceeded_length, _connection.
_pool
.Settings.MaxResponseHeadersByteLength));
704
Encoding? valueEncoding = _connection.
_pool
.Settings._responseHeaderEncodingSelector?.Invoke(descriptor.Name, _request);
1100
if (_connection.
_pool
.Settings._useCookies)
1102
CookieHelper.ProcessReceivedCookies(_response, _connection.
_pool
.Settings._cookieContainer!);
System\Net\Http\SocketsHttpHandler\Http2StreamWindowManager.cs (1)
25
HttpConnectionSettings settings = connection.
_pool
.Settings;
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (8)
50
public HttpConnectionPool Pool =>
_pool
;
83
uint maxHeaderListSize =
_pool
._lastSeenHttp3MaxHeaderListSize;
287
_pool
.Settings._metrics!.RequestLeftQueue(request, Pool, duration, versionMajor: 3);
363
_pool
.InvalidateHttp3Connection(this);
396
_pool
.InvalidateHttp3Connection(this);
458
_pool
?.GetHashCode() ?? 0, // pool ID
479
await _clientControl.WriteAsync(
_pool
.Settings.Http3SettingsFrame, CancellationToken.None).ConfigureAwait(false);
851
_pool
._lastSeenHttp3MaxHeaderListSize = _maxHeaderListSize;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (18)
108
_pool
.InvalidateHttp11Connection(this, disposing);
297
public HttpConnectionKind Kind =>
_pool
.Kind;
349
if (
_pool
.HostHeaderLineBytes is byte[] hostHeaderLineBytes)
365
if (
_pool
.Settings._useCookies)
367
cookiesFromContainer =
_pool
.Settings._cookieContainer!.GetCookieHeader(request.RequestUri);
421
HeaderEncodingSelector<HttpRequestMessage>? encodingSelector =
_pool
.Settings._requestHeaderEncodingSelector;
590
allowExpect100ToContinue,
_pool
.Settings._expect100ContinueTimeout, Timeout.InfiniteTimeSpan);
597
_allowedReadLineBytes =
_pool
.Settings.MaxResponseHeadersByteLength;
795
_pool
.InvalidateHttp11Connection(this);
806
_pool
.InvalidateHttp11Connection(this);
835
if (
_pool
.Settings._useCookies)
837
CookieHelper.ProcessReceivedCookies(response,
_pool
.Settings._cookieContainer!);
1276
Encoding? valueEncoding =
_pool
.Settings._responseHeaderEncodingSelector?.Invoke(descriptor.Name, _currentRequest!);
1330
throw new HttpRequestException(HttpRequestError.ConfigurationLimitExceeded, SR.Format(SR.net_http_response_headers_exceeded_length,
_pool
.Settings.MaxResponseHeadersByteLength));
2086
if (!await responseStream.DrainAsync(
_pool
.Settings._maxResponseDrainSize).ConfigureAwait(false) ||
2123
_pool
.RecycleHttp11Connection(this);
2127
public sealed override string ToString() => $"{nameof(HttpConnection)}({
_pool
})"; // Description for diagnostic purposes
2131
_pool
?.GetHashCode() ?? 0, // pool ID
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (8)
59
Debug.Assert(
_pool
.Settings._metrics is not null);
61
SocketsHttpHandlerMetrics metrics =
_pool
.Settings._metrics;
73
_pool
.IsSecure ? "https" : "http",
74
_pool
.OriginAuthority.HostValue,
75
_pool
.OriginAuthority.Port,
87
string scheme =
_pool
.IsSecure ? "https" : "http";
88
string host =
_pool
.OriginAuthority.HostValue;
89
int port =
_pool
.OriginAuthority.Port;
System\Net\Http\SocketsHttpHandler\HttpContentReadStream.cs (3)
78
bool drained = await DrainAsync(connection.
_pool
.Settings._maxResponseDrainSize).ConfigureAwait(false);
84
$"Connection drain failed when MaxResponseDrainSize={connection.
_pool
.Settings._maxResponseDrainSize} bytes or MaxResponseDrainTime=={connection.
_pool
.Settings._maxResponseDrainTime} exceeded");