Smaller default buffer

This commit is contained in:
Ben Adams 2015-12-03 18:46:43 +00:00
parent 10490888d3
commit 9af9dea72c
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ namespace Microsoft.AspNet.Server.Kestrel.Filter
_filteredStream = filteredStream;
_socketInputStream = new SocketInputStream(SocketInput);
_filteredStream.CopyToAsync(_socketInputStream).ContinueWith((task, state) =>
// Don't use 81920 byte buffer
_filteredStream.CopyToAsync(_socketInputStream, 4096).ContinueWith((task, state) =>
{
((FilteredStreamAdapter)state).OnStreamClose(task);
}, this);