5 writes to MaxRequestBufferSize
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
KestrelServerLimitsTests.cs (2)
54(new KestrelServerLimits()).MaxRequestBufferSize = value; 64o.MaxRequestBufferSize = value;
KestrelServerTests.cs (2)
225MaxRequestBufferSize = maxRequestBufferSize, 251MaxRequestBufferSize = maxRequestBufferSize,
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
326options.Limits.MaxRequestBufferSize = maxRequestBufferSize;
11 references to MaxRequestBufferSize
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\KestrelServerImpl.cs (6)
413if (Options.Limits.MaxRequestBufferSize.HasValue && 414Options.Limits.MaxRequestBufferSize < Options.Limits.MaxRequestLineSize) 417CoreStrings.FormatMaxRequestBufferSmallerThanRequestLineBuffer(Options.Limits.MaxRequestBufferSize.Value, Options.Limits.MaxRequestLineSize)); 420if (Options.Limits.MaxRequestBufferSize.HasValue && 421Options.Limits.MaxRequestBufferSize < Options.Limits.MaxRequestHeadersTotalSize) 424CoreStrings.FormatMaxRequestBufferSmallerThanRequestHeaderBuffer(Options.Limits.MaxRequestBufferSize.Value, Options.Limits.MaxRequestHeadersTotalSize));
KestrelServerLimits.cs (3)
293writer.WritePropertyName(nameof(MaxRequestBufferSize)); 294if (MaxRequestBufferSize is null) 300writer.WriteNumberValue(MaxRequestBufferSize.Value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
KestrelServerLimitsTests.cs (2)
44Assert.Equal(1024 * 1024, (new KestrelServerLimits()).MaxRequestBufferSize); 65Assert.Equal(value, o.MaxRequestBufferSize);