50 instantiations of KestrelServerLimits
InMemory.FunctionalTests (4)
Http3\Http3ConnectionTests.cs (1)
371
var defaultLimits = new
KestrelServerLimits
();
MaxRequestBodySizeTests.cs (3)
294
Assert.Equal(new
KestrelServerLimits
().MaxRequestBodySize, feature.MaxRequestBodySize);
334
Assert.Equal(new
KestrelServerLimits
().MaxRequestBodySize, feature.MaxRequestBodySize);
391
"Content-Length: " + (new
KestrelServerLimits
().MaxRequestBodySize + 1),
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelServerOptions.cs (1)
183
public KestrelServerLimits Limits { get; } = new
KestrelServerLimits
();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (45)
Http3\Http3FrameWriterTests.cs (1)
58
var kestrelLimits = new
KestrelServerLimits
();
KestrelServerLimitsTests.cs (44)
15
Assert.Equal(64 * 1024, (new
KestrelServerLimits
()).MaxResponseBufferSize);
25
(new
KestrelServerLimits
()).MaxResponseBufferSize = value;
36
var o = new
KestrelServerLimits
();
44
Assert.Equal(1024 * 1024, (new
KestrelServerLimits
()).MaxRequestBufferSize);
54
(new
KestrelServerLimits
()).MaxRequestBufferSize = value;
63
var o = new
KestrelServerLimits
();
71
Assert.Equal(8 * 1024, (new
KestrelServerLimits
()).MaxRequestLineSize);
82
(new
KestrelServerLimits
()).MaxRequestLineSize = value;
91
var o = new
KestrelServerLimits
();
99
Assert.Equal(32 * 1024, (new
KestrelServerLimits
()).MaxRequestHeadersTotalSize);
108
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new
KestrelServerLimits
().MaxRequestHeadersTotalSize = value);
117
var o = new
KestrelServerLimits
();
125
Assert.Equal(100, (new
KestrelServerLimits
()).MaxRequestHeaderCount);
136
(new
KestrelServerLimits
()).MaxRequestHeaderCount = value;
145
var o = new
KestrelServerLimits
();
153
Assert.Equal(TimeSpan.FromSeconds(130), new
KestrelServerLimits
().KeepAliveTimeout);
160
Assert.Equal(value, new
KestrelServerLimits
{ KeepAliveTimeout = value }.KeepAliveTimeout);
166
Assert.Equal(TimeSpan.MaxValue, new
KestrelServerLimits
{ KeepAliveTimeout = Timeout.InfiniteTimeSpan }.KeepAliveTimeout);
173
var exception = Assert.Throws<ArgumentOutOfRangeException>(() => new
KestrelServerLimits
{ KeepAliveTimeout = value });
182
Assert.Equal(TimeSpan.FromSeconds(30), new
KestrelServerLimits
().RequestHeadersTimeout);
189
Assert.Equal(value, new
KestrelServerLimits
{ RequestHeadersTimeout = value }.RequestHeadersTimeout);
195
Assert.Equal(TimeSpan.MaxValue, new
KestrelServerLimits
{ RequestHeadersTimeout = Timeout.InfiniteTimeSpan }.RequestHeadersTimeout);
202
var exception = Assert.Throws<ArgumentOutOfRangeException>(() => new
KestrelServerLimits
{ RequestHeadersTimeout = value });
211
Assert.Null(new
KestrelServerLimits
().MaxConcurrentConnections);
212
Assert.Null(new
KestrelServerLimits
().MaxConcurrentUpgradedConnections);
221
var limits = new
KestrelServerLimits
235
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new
KestrelServerLimits
().MaxConcurrentConnections = value);
246
var limits = new
KestrelServerLimits
259
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new
KestrelServerLimits
().MaxConcurrentUpgradedConnections = value);
267
Assert.Equal(30000000, new
KestrelServerLimits
().MaxRequestBodySize);
277
var limits = new
KestrelServerLimits
290
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new
KestrelServerLimits
().MaxRequestBodySize = value);
297
Assert.NotNull(new
KestrelServerLimits
().MinRequestBodyDataRate);
298
Assert.Equal(240, new
KestrelServerLimits
().MinRequestBodyDataRate.BytesPerSecond);
299
Assert.Equal(TimeSpan.FromSeconds(5), new
KestrelServerLimits
().MinRequestBodyDataRate.GracePeriod);
305
Assert.NotNull(new
KestrelServerLimits
().MinResponseDataRate);
306
Assert.Equal(240, new
KestrelServerLimits
().MinResponseDataRate.BytesPerSecond);
307
Assert.Equal(TimeSpan.FromSeconds(5), new
KestrelServerLimits
().MinResponseDataRate.GracePeriod);
313
Assert.Equal(1 << 14, new
KestrelServerLimits
().Http2.MaxFrameSize);
322
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new
KestrelServerLimits
().Http2.MaxFrameSize = value);
329
Assert.Equal(4096, new
KestrelServerLimits
().Http2.HeaderTableSize);
337
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new
KestrelServerLimits
().Http2.HeaderTableSize = value);
344
Assert.Equal(32 * 1024, new
KestrelServerLimits
().Http2.MaxRequestHeaderFieldSize);
353
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => new
KestrelServerLimits
().Http2.MaxRequestHeaderFieldSize = value);
25 references to KestrelServerLimits
InMemory.FunctionalTests (1)
Http3\Http3ConnectionTests.cs (1)
371
var
defaultLimits = new KestrelServerLimits();
Microsoft.AspNetCore.Server.Kestrel.Core (15)
Features\IDecrementConcurrentConnectionCountFeature.cs (2)
7
/// A connection feature allowing middleware to stop counting connections towards <see cref="
KestrelServerLimits
.MaxConcurrentConnections"/>.
13
/// Idempotent method to stop counting a connection towards <see cref="
KestrelServerLimits
.MaxConcurrentConnections"/>.
Features\IHttpMinRequestBodyDataRateFeature.cs (2)
9
/// Instead, use <see cref="
KestrelServerLimits
.MinRequestBodyDataRate"/> for server-wide configuration which applies to both HTTP/2 and HTTP/1.x.
18
/// Instead, use <see cref="
KestrelServerLimits
.MinRequestBodyDataRate"/> for server-wide configuration which applies to both HTTP/2 and HTTP/1.x.
Features\IHttpMinResponseDataRateFeature.cs (2)
8
/// This feature is not available for HTTP/2 requests. Instead, use <see cref="
KestrelServerLimits
.MinResponseDataRate"/>
17
/// This feature is not available for HTTP/2 requests. Instead, use <see cref="
KestrelServerLimits
.MinResponseDataRate"/>
Internal\Http2\Http2Connection.cs (2)
154
var
httpLimits = context.ServiceContext.ServerOptions.Limits;
215
public
KestrelServerLimits
Limits => _context.ServiceContext.ServerOptions.Limits;
Internal\Http3\Http3Connection.cs (2)
62
var
httpLimits = context.ServiceContext.ServerOptions.Limits;
96
public
KestrelServerLimits
Limits => _context.ServiceContext.ServerOptions.Limits;
Internal\Http3\Http3ControlStream.cs (1)
44
var
httpLimits = context.ServiceContext.ServerOptions.Limits;
Internal\Http3\Http3Stream.cs (1)
74
public
KestrelServerLimits
Limits => _context.ServiceContext.ServerOptions.Limits;
Internal\Http3\IHttp3Stream.cs (2)
19
/// Value is driven by <see cref="
KestrelServerLimits
.RequestHeadersTimeout"/>.
21
/// Value is driven by <see cref="
KestrelServerLimits
.MinResponseDataRate"/>.
KestrelServerOptions.cs (1)
183
public
KestrelServerLimits
Limits { get; } = new KestrelServerLimits();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (9)
Http3\Http3FrameWriterTests.cs (1)
58
var
kestrelLimits = new KestrelServerLimits();
KestrelServerLimitsTests.cs (8)
36
var
o = new KestrelServerLimits();
63
var
o = new KestrelServerLimits();
91
var
o = new KestrelServerLimits();
117
var
o = new KestrelServerLimits();
145
var
o = new KestrelServerLimits();
221
var
limits = new KestrelServerLimits
246
var
limits = new KestrelServerLimits
277
var
limits = new KestrelServerLimits