3 writes to Limits
InMemory.FunctionalTests (1)
MaxRequestLineSizeTests.cs (1)
90
Limits
=
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerTests.cs (2)
223
Limits
=
249
Limits
=
66 references to Limits
Binding.Http.IntegrationTests (1)
MtomBindingTestHelper.cs (1)
47
serverOptions.
Limits
.MaxRequestBodySize = 5_368_709_120;
InMemory.FunctionalTests (2)
RequestHeaderLimitsTests.cs (2)
167
options.
Limits
.MaxRequestHeaderCount = maxRequestHeaderCount.Value;
172
options.
Limits
.MaxRequestHeadersTotalSize = maxRequestHeadersTotalSize.Value;
Interop.FunctionalTests (5)
Http3\Http3RequestTests.cs (1)
2020
kestrel.
Limits
.MinRequestBodyDataRate = null;
HttpClientHttp2InteropTests.cs (4)
1139
options.
Limits
.Http2.HeaderTableSize = 1;
1199
options.
Limits
.Http2.MaxStreamsPerConnection = 5;
1260
options.
Limits
.Http2.MaxStreamsPerConnection = 5;
1318
webHostBuilder.ConfigureKestrel(options => options.
Limits
.Http2.MaxFrameSize = 1024 * 20); // The default is 16kb
InteropWebsite (1)
Program.cs (1)
50
options.
Limits
.MinRequestBodyDataRate = null;
Microsoft.AspNetCore.Server.Kestrel.Core (46)
Internal\Http\Http1Connection.cs (7)
93
TimeoutControl.StartDrainTimeout(MinResponseDataRate, ServerOptions.
Limits
.MaxResponseBufferSize);
185
TimeoutControl.ResetTimeout(ServerOptions.
Limits
.RequestHeadersTimeout, TimeoutReason.RequestHeaders);
216
if (reader.Remaining >= ServerOptions.
Limits
.MaxRequestLineSize)
226
var trimmedBuffer = reader.Sequence.Slice(reader.Position, ServerOptions.
Limits
.MaxRequestLineSize);
680
_remainingRequestHeadersBytesAllowed = (long)ServerOptions.
Limits
.MaxRequestHeadersTotalSize + 2;
682
MinResponseDataRate = ServerOptions.
Limits
.MinResponseDataRate;
705
TimeoutControl.SetTimeout(ServerOptions.
Limits
.KeepAliveTimeout, TimeoutReason.KeepAlive);
Internal\Http\HttpProtocol.cs (3)
357
MaxRequestBodySize = ServerOptions.
Limits
.MaxRequestBodySize;
358
MinRequestBodyDataRate = ServerOptions.
Limits
.MinRequestBodyDataRate;
430
_eagerRequestHeadersParsedLimit = ServerOptions.
Limits
.MaxRequestHeaderCount;
Internal\Http2\Http2Connection.cs (4)
154
var httpLimits = context.ServiceContext.ServerOptions.
Limits
;
215
public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.
Limits
;
310
var connectionWindow = _context.ServiceContext.ServerOptions.
Limits
.Http2.InitialConnectionWindowSize;
1581
if (_totalParsedHeaderSize > _context.ServiceContext.ServerOptions.
Limits
.MaxRequestHeadersTotalSize * 2)
Internal\Http2\Http2Stream.cs (4)
60
_eagerRequestHeadersParsedLimit = ServerOptions.
Limits
.MaxRequestHeaderCount * 2;
221
if (TotalParsedHeaderSize > ServerOptions.
Limits
.MaxRequestHeadersTotalSize)
227
if (RequestHeadersParsed > ServerOptions.
Limits
.MaxRequestHeaderCount)
334
if (requestLineLength > ServerOptions.
Limits
.MaxRequestLineSize)
Internal\Http3\Http3Connection.cs (4)
62
var httpLimits = context.ServiceContext.ServerOptions.
Limits
;
96
public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.
Limits
;
259
var requestHeadersTimeout = serviceContext.ServerOptions.
Limits
.RequestHeadersTimeout.ToTicks(
307
var minDataRate = _context.ServiceContext.ServerOptions.
Limits
.MinResponseDataRate;
Internal\Http3\Http3ControlStream.cs (1)
44
var httpLimits = context.ServiceContext.ServerOptions.
Limits
;
Internal\Http3\Http3Stream.cs (8)
74
public KestrelServerLimits Limits => _context.ServiceContext.ServerOptions.
Limits
;
102
_eagerRequestHeadersParsedLimit = ServerOptions.
Limits
.MaxRequestHeaderCount * 2;
112
context.ServiceContext.ServerOptions.
Limits
.MinResponseDataRate,
126
QPackDecoder = new QPackDecoder(_context.ServiceContext.ServerOptions.
Limits
.Http3.MaxRequestHeaderFieldSize);
289
if (_totalParsedHeaderSize > ServerOptions.
Limits
.MaxRequestHeadersTotalSize * 2)
966
if (_totalParsedHeaderSize > ServerOptions.
Limits
.MaxRequestHeadersTotalSize)
972
if (RequestHeadersParsed > ServerOptions.
Limits
.MaxRequestHeaderCount)
1055
if (requestLineLength > ServerOptions.
Limits
.MaxRequestLineSize)
Internal\KestrelServerImpl.cs (13)
84
serverOptions.
Limits
.MaxConcurrentUpgradedConnections);
197
connectionDelegate = EnforceConnectionLimit(connectionDelegate, Options.
Limits
.MaxConcurrentConnections, Trace, ServiceContext.Metrics);
216
multiplexedConnectionDelegate = EnforceConnectionLimit(multiplexedConnectionDelegate, Options.
Limits
.MaxConcurrentConnections, Trace, ServiceContext.Metrics);
413
if (Options.
Limits
.MaxRequestBufferSize.HasValue &&
414
Options.
Limits
.MaxRequestBufferSize < Options.
Limits
.MaxRequestLineSize)
417
CoreStrings.FormatMaxRequestBufferSmallerThanRequestLineBuffer(Options.
Limits
.MaxRequestBufferSize.Value, Options.
Limits
.MaxRequestLineSize));
420
if (Options.
Limits
.MaxRequestBufferSize.HasValue &&
421
Options.
Limits
.MaxRequestBufferSize < Options.
Limits
.MaxRequestHeadersTotalSize)
424
CoreStrings.FormatMaxRequestBufferSmallerThanRequestHeaderBuffer(Options.
Limits
.MaxRequestBufferSize.Value, Options.
Limits
.MaxRequestHeadersTotalSize));
KestrelServerOptions.cs (2)
354
writer.WritePropertyName(nameof(
Limits
));
356
Limits
.Serialize(writer);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Http1\Http1ConnectionTests.cs (2)
269
options.
Limits
.MaxRequestHeadersTotalSize = headerLine1.Length;
270
options.
Limits
.MaxRequestHeaderCount = 1;
Sockets.FunctionalTests (9)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (7)
325
options.
Limits
.MaxRequestBufferSize = maxRequestBufferSize;
328
maxRequestBufferSize.Value < options.
Limits
.MaxRequestLineSize)
330
options.
Limits
.MaxRequestLineSize = (int)maxRequestBufferSize;
334
maxRequestBufferSize.Value < options.
Limits
.MaxRequestHeadersTotalSize)
336
options.
Limits
.MaxRequestHeadersTotalSize = (int)maxRequestBufferSize;
339
options.
Limits
.MinRequestBodyDataRate = null;
341
options.
Limits
.MaxRequestBodySize = _dataLength;
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (2)
80
options.
Limits
.MaxRequestBodySize = contentLength;
81
options.
Limits
.MinRequestBodyDataRate = null;