From d001f5c519c61c02c7fe63c7c98300d64af510ab Mon Sep 17 00:00:00 2001 From: David Fowler Date: Mon, 3 Jun 2019 10:00:53 -0700 Subject: [PATCH] Use the defaults that existed in Kestrel before (#10740) --- .../Kestrel/Transport.Libuv/src/LibuvTransportOptions.cs | 5 ++--- .../Kestrel/Transport.Sockets/src/SocketTransportOptions.cs | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Servers/Kestrel/Transport.Libuv/src/LibuvTransportOptions.cs b/src/Servers/Kestrel/Transport.Libuv/src/LibuvTransportOptions.cs index 9110b39587..4ba48aa9ad 100644 --- a/src/Servers/Kestrel/Transport.Libuv/src/LibuvTransportOptions.cs +++ b/src/Servers/Kestrel/Transport.Libuv/src/LibuvTransportOptions.cs @@ -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 /// 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> MemoryPoolFactory { get; set; } = System.Buffers.MemoryPoolFactory.Create; diff --git a/src/Servers/Kestrel/Transport.Sockets/src/SocketTransportOptions.cs b/src/Servers/Kestrel/Transport.Sockets/src/SocketTransportOptions.cs index 2ec6c52fd0..7bd8e6e937 100644 --- a/src/Servers/Kestrel/Transport.Sockets/src/SocketTransportOptions.cs +++ b/src/Servers/Kestrel/Transport.Sockets/src/SocketTransportOptions.cs @@ -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 /// 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> MemoryPoolFactory { get; set; } = System.Buffers.MemoryPoolFactory.Create; }