54 writes to ServerOptions
InMemory.FunctionalTests (38)
BadHttpRequestTests.cs (1)
173ServerOptions = new KestrelServerOptions()
DefaultHeaderTests.cs (1)
18ServerOptions = { AddServerHeader = true }
HttpsTests.cs (6)
440testContext.ServerOptions = serverOptions; 480testContext.ServerOptions = serverOptions; 525testContext.ServerOptions = serverOptions; 559testContext.ServerOptions = serverOptions; 596testContext.ServerOptions = serverOptions; 642testContext.ServerOptions = serverOptions;
MaxRequestBodySizeTests.cs (11)
41new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 88new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = maxRequestBodySize } } })) 135new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { ServerOptions = { Limits = { MaxRequestBodySize = maxRequestBodySize } } })) 184new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 228new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } })) 252new TestServiceContext { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } })) 384new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } })) 437new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 483new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 546new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = globalMaxRequestBodySize } } })) 597new TestServiceContext(LoggerFactory) { ServerOptions = { Limits = { MaxRequestBodySize = 0 } } }))
MaxRequestLineSizeTests.cs (1)
87ServerOptions = new KestrelServerOptions
RequestHeaderLimitsTests.cs (1)
178ServerOptions = options
RequestTests.cs (2)
1782ServerOptions = { AllowSynchronousIO = false } 1827ServerOptions = { AllowSynchronousIO = true }
ResponseTests.cs (13)
954ServerOptions = { AllowSynchronousIO = true } 1034ServerOptions = { AllowSynchronousIO = true } 1499var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1532var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1563var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1599var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1643var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1897var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1939var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 1981var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 2026var serviceContext = new TestServiceContext(LoggerFactory) { ServerOptions = { AllowSynchronousIO = true } }; 3662ServerOptions = { AllowSynchronousIO = true } 3697ServerOptions = { AllowSynchronousIO = false }
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
41ServerOptions = serverOptions,
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61ServerOptions = new KestrelServerOptions
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
107ServerOptions = serverOptions,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Http1\Http1ConnectionTests.cs (1)
271_serviceContext.ServerOptions = options;
KestrelServerTests.cs (1)
720ServerOptions =
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
41ServerOptions = serverOptions,
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61ServerOptions = new KestrelServerOptions
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
41ServerOptions = serverOptions,
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61ServerOptions = new KestrelServerOptions
Sockets.FunctionalTests (9)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
61ServerOptions = new KestrelServerOptions
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
1035ServerOptions =
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (7)
286ServerOptions = 510ServerOptions = 644ServerOptions = 765ServerOptions = 864ServerOptions = 941ServerOptions = 1028ServerOptions =
196 references to ServerOptions
InMemory.FunctionalTests (152)
ChunkedRequestTests.cs (2)
490testContext.ServerOptions.Limits.MaxRequestHeadersTotalSize = 537testContext.ServerOptions.Limits.MaxRequestHeaderCount = 2;
ConnectionLimitTests.cs (1)
229serviceContext.ServerOptions.Limits.MaxConcurrentConnections = max;
Http2\Http2ConnectionTests.cs (26)
648_serviceContext.ServerOptions.Limits.MinRequestBodyDataRate = null; 739_serviceContext.ServerOptions.Limits.Http2.MaxFrameSize = length; 826var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 828var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 928var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 930var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1059var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1060var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1279var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1349var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1389_serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize = 128 * 1024; 1390_serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize = 96 * 1024; 1392var initialStreamWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1394var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1640_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1675_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1688_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 100; 1701_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = int.MaxValue; 1714_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = 1; 1793_serviceContext.ServerOptions.Limits.Http2.MaxStreamsPerConnection = maxStreamsPerConnection; 1854var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialStreamWindowSize; 1878var initialWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 2347_serviceContext.ServerOptions.Limits.Http2.HeaderTableSize = 0; 2477_serviceContext.ServerOptions.AllowResponseHeaderCompression = false; 3408var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 4019_serviceContext.ServerOptions.Limits.Http2.HeaderTableSize = 40000;
Http2\Http2KeepAliveTests.cs (17)
14_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = Timeout.InfiniteTimeSpan; 27_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 28_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingTimeout = Timeout.InfiniteTimeSpan; 57_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 79_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 102_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(5); 119_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 142_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 180_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 181_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingTimeout = TimeSpan.FromSeconds(3); 212_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 213_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingTimeout = TimeSpan.FromSeconds(3); 244_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 268_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 271_serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize = 65535; 322_serviceContext.ServerOptions.Limits.Http2.KeepAlivePingDelay = TimeSpan.FromSeconds(1); 325_serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize = 65535;
Http2\Http2StreamTests.cs (17)
475_serviceContext.ServerOptions.AllowAlternateSchemes = true; 512_serviceContext.ServerOptions.AllowAlternateSchemes = true; 1856_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 15; 1897_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 1943_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 15; 1983_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 2035_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 20; 2095_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 2180_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 2181_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF8; // Used for decoding response. 2225_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding; 2506_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 2507_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF8; // Used for decoding response. 2560_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding; 3651_serviceContext.ServerOptions.Limits.Http2.MaxFrameSize = 17001; 5798_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.Latin1; 5843_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => encoding;
Http2\Http2TestBase.cs (4)
441_decodedHeaders[nameStr] = value.GetRequestHeaderString(nameStr, _serviceContext.ServerOptions.RequestHeaderEncodingSelector, checkForNewlineChars: true); 1411pauseWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 1412resumeWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 1430var bufferSize = serviceContext.ServerOptions.Limits.MaxResponseBufferSize;
Http2\Http2TimeoutTests.cs (19)
19var limits = _serviceContext.ServerOptions.Limits; 41var limits = _serviceContext.ServerOptions.Limits; 61var limits = _serviceContext.ServerOptions.Limits; 110var limits = _serviceContext.ServerOptions.Limits; 133var limits = _serviceContext.ServerOptions.Limits; 174var limits = _serviceContext.ServerOptions.Limits; 209var limits = _serviceContext.ServerOptions.Limits; 350var limits = _serviceContext.ServerOptions.Limits; 403var limits = _serviceContext.ServerOptions.Limits; 458var limits = _serviceContext.ServerOptions.Limits; 510var limits = _serviceContext.ServerOptions.Limits; 564var limits = _serviceContext.ServerOptions.Limits; 630var limits = _serviceContext.ServerOptions.Limits; 677var limits = _serviceContext.ServerOptions.Limits; 728var limits = _serviceContext.ServerOptions.Limits; 795var limits = _serviceContext.ServerOptions.Limits; 863var limits = _serviceContext.ServerOptions.Limits; 915var initialConnectionWindowSize = _serviceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 920var limits = _serviceContext.ServerOptions.Limits;
Http2\Http2WebSocketTests.cs (3)
325var limits = _serviceContext.ServerOptions.Limits; 387var limits = _serviceContext.ServerOptions.Limits; 403Assert.Equal(_serviceContext.ServerOptions.Limits.MaxRequestBodySize + 1, memoryStream.Length);
Http3\Http3StreamTests.cs (20)
297_serviceContext.ServerOptions.AllowAlternateSchemes = true; 322_serviceContext.ServerOptions.AllowAlternateSchemes = true; 891_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 892_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF8; // Used for decoding response. 929_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding; 1040_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 1041_serviceContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF8; // Used for decoding response. 1080_serviceContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding; 1955Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = pendingStreamsEnabled; 2095Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = pendingStreamsEnabled; 2378var limit = _serviceContext.ServerOptions.Limits.Http3.MaxRequestHeaderFieldSize; 2514_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 15; 2548_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 2588_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 15; 2621_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 2665_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 20; 2717_serviceContext.ServerOptions.Limits.MaxRequestBodySize = 10; 3073_serviceContext.ServerOptions.Limits.MaxRequestBufferSize = 100; 3138_serviceContext.ServerOptions.Limits.MaxRequestBufferSize = 1; 3222_serviceContext.ServerOptions.Limits.MaxRequestBufferSize = 1;
Http3\Http3TimeoutTests.cs (22)
21var limits = _serviceContext.ServerOptions.Limits; 37var limits = _serviceContext.ServerOptions.Limits; 61var limits = _serviceContext.ServerOptions.Limits; 90var limits = _serviceContext.ServerOptions.Limits; 131var limits = _serviceContext.ServerOptions.Limits; 162Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = pendingStreamsEnabled; 165var limits = _serviceContext.ServerOptions.Limits; 215Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true; 219var limits = _serviceContext.ServerOptions.Limits; 242Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = false; 247var limits = _serviceContext.ServerOptions.Limits; 283var limits = _serviceContext.ServerOptions.Limits; 305Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = pendingStreamEnabled; 308var limits = _serviceContext.ServerOptions.Limits; 338var limits = _serviceContext.ServerOptions.Limits; 380var limits = _serviceContext.ServerOptions.Limits; 448var limits = _serviceContext.ServerOptions.Limits; 490var limits = _serviceContext.ServerOptions.Limits; 532var limits = _serviceContext.ServerOptions.Limits; 578var limits = _serviceContext.ServerOptions.Limits; 633var limits = _serviceContext.ServerOptions.Limits; 689var limits = _serviceContext.ServerOptions.Limits;
Http3\WebTransport\WebTransportHandshakeTests.cs (2)
22_serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true; 113_serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true;
Http3\WebTransport\WebTransportSessionTests.cs (3)
15Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true; 36Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true; // TODO add more sync code as now it is flaky 71Http3Api._serviceContext.ServerOptions.EnableWebTransportAndH3Datagrams = true;
KeepAliveTimeoutTests.cs (3)
251context.ServerOptions.AddServerHeader = false; 252context.ServerOptions.Limits.KeepAliveTimeout = _keepAliveTimeout; 253context.ServerOptions.Limits.MinRequestBodyDataRate = null;
RequestHeadersTimeoutTests.cs (3)
126testContext.ServerOptions.Limits.MinResponseDataRate = null; 155context.ServerOptions.Limits.RequestHeadersTimeout = RequestHeadersTimeout; 156context.ServerOptions.Limits.MinRequestBodyDataRate = null;
RequestTests.cs (3)
888testContext.ServerOptions.Limits.MinRequestBodyDataRate = null; 2197testContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.Latin1; 2290testContext.ServerOptions.RequestHeaderEncodingSelector = _ => Encoding.UTF32;
ResponseHeaderTests.cs (2)
50testContext.ServerOptions.ResponseHeaderEncodingSelector = _ => Encoding.UTF8; 87testContext.ServerOptions.ResponseHeaderEncodingSelector = _ => encoding;
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
367pauseWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 368resumeWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 386var bufferSize = serviceContext.ServerOptions.Limits.MaxResponseBufferSize;
TestTransport\TestServer.cs (2)
96context.ServerOptions.ApplicationServices = sp; 97configureKestrel(context.ServerOptions);
Microsoft.AspNetCore.Server.Kestrel.Core (26)
Internal\Http\Http1Connection.cs (1)
656if (_context.ServiceContext.ServerOptions.AllowHostHeaderOverride)
Internal\Http\HttpProtocol.cs (1)
90ServerOptions = ServiceContext.ServerOptions;
Internal\Http2\Http2Connection.cs (5)
154var httpLimits = context.ServiceContext.ServerOptions.Limits; 215public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.Limits; 231var useException = _context.ServiceContext.ServerOptions.FinOnError || hasActiveStreams; 310var connectionWindow = _context.ServiceContext.ServerOptions.Limits.Http2.InitialConnectionWindowSize; 1581if (_totalParsedHeaderSize > _context.ServiceContext.ServerOptions.Limits.MaxRequestHeadersTotalSize * 2)
Internal\Http2\Http2FrameWriter.cs (1)
134_hpackEncoder = new DynamicHPackEncoder(serviceContext.ServerOptions.AllowResponseHeaderCompression);
Internal\Http3\Http3Connection.cs (11)
62var httpLimits = context.ServiceContext.ServerOptions.Limits; 66_serverSettings.EnableWebTransport = Convert.ToUInt32(context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams); 69_serverSettings.H3Datagram = Convert.ToUInt32(context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams); 71if (context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams) 96public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.Limits; 259var requestHeadersTimeout = serviceContext.ServerOptions.Limits.RequestHeadersTimeout.ToTicks( 307var minDataRate = _context.ServiceContext.ServerOptions.Limits.MinResponseDataRate; 392if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams) 424if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams) 625Debug.Assert(_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams); 918Debug.Assert(_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams);
Internal\Http3\Http3ControlStream.cs (1)
50var httpLimits = context.ServiceContext.ServerOptions.Limits;
Internal\Http3\Http3Stream.cs (5)
85public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.Limits; 123context.ServiceContext.ServerOptions.Limits.MinResponseDataRate, 137QPackDecoder = new QPackDecoder(_context.ServiceContext.ServerOptions.Limits.Http3.MaxRequestHeaderFieldSize); 864if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams && HttpRequestHeaders.HeaderProtocol.Count > 0) 1257if (!_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams)
Internal\KestrelServerImpl.cs (1)
115public KestrelServerOptions Options => ServiceContext.ServerOptions;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (11)
Http1\Http1ConnectionTests.cs (11)
63_serviceContext.ServerOptions.Limits.MaxRequestHeadersTotalSize = int.MaxValue; 74_serviceContext.ServerOptions.Limits.MaxRequestHeadersTotalSize = headerLine.Length - 1; 91_serviceContext.ServerOptions.Limits.MaxRequestHeaderCount = 1; 114_serviceContext.ServerOptions.Limits.MaxRequestHeadersTotalSize = headerLine.Length; 170Assert.Same(_serviceContext.ServerOptions.Limits.MinRequestBodyDataRate, _http1Connection.MinRequestBodyDataRate); 180Assert.Same(_serviceContext.ServerOptions.Limits.MinResponseDataRate, _http1Connection.MinResponseDataRate); 453_timeoutControl.Verify(cc => cc.ResetTimeout(_serviceContext.ServerOptions.Limits.RequestHeadersTimeout, TimeoutReason.RequestHeaders)); 459_serviceContext.ServerOptions.Limits.MaxRequestLineSize = "GET / HTTP/1.1\r\n".Length; 575var expectedKeepAliveTimeout = _serviceContext.ServerOptions.Limits.KeepAliveTimeout; 870_serviceContext.ServerOptions.Limits.MaxRequestHeaderCount = header0Count + header1Count; 902_serviceContext.ServerOptions.Limits.MaxRequestHeaderCount = header0Count + header1Count;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
367pauseWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 368resumeWriterThreshold: serviceContext.ServerOptions.Limits.MaxRequestBufferSize ?? 0, 386var bufferSize = serviceContext.ServerOptions.Limits.MaxResponseBufferSize;
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
70_host = TransportSelector.GetHostBuilder(context.ServerOptions.Limits.MaxRequestBufferSize) 96c.Configure(context.ServerOptions);
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
70_host = TransportSelector.GetHostBuilder(context.ServerOptions.Limits.MaxRequestBufferSize) 96c.Configure(context.ServerOptions);