Use the defaults that existed in Kestrel before (#10740)

This commit is contained in:
David Fowler 2019-06-03 10:00:53 -07:00 committed by GitHub
parent 20475aa0f7
commit d001f5c519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -3,7 +3,6 @@
using System;
using System.Buffers;
using System.IO.Pipelines;
namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv
{
@ -28,9 +27,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv
/// </remarks>
public bool NoDelay { get; set; } = true;
public long? MaxReadBufferSize { get; set; } = PipeOptions.Default.PauseWriterThreshold;
public long? MaxReadBufferSize { get; set; } = 1024 * 1024;
public long? MaxWriteBufferSize { get; set; } = PipeOptions.Default.PauseWriterThreshold;
public long? MaxWriteBufferSize { get; set; } = 64 * 1024;
internal Func<MemoryPool<byte>> MemoryPoolFactory { get; set; } = System.Buffers.MemoryPoolFactory.Create;

View File

@ -3,7 +3,6 @@
using System;
using System.Buffers;
using System.IO.Pipelines;
namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets
{
@ -25,9 +24,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets
/// </remarks>
public bool NoDelay { get; set; } = true;
public long? MaxReadBufferSize { get; set; } = PipeOptions.Default.PauseWriterThreshold;
public long? MaxReadBufferSize { get; set; } = 1024 * 1024;
public long? MaxWriteBufferSize { get; set; } = PipeOptions.Default.PauseWriterThreshold;
public long? MaxWriteBufferSize { get; set; } = 64 * 1024;
internal Func<MemoryPool<byte>> MemoryPoolFactory { get; set; } = System.Buffers.MemoryPoolFactory.Create;
}