From ae59e4b900a7bcf2e1fb7ed6118cd04b9ac2c005 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Mon, 7 Oct 2019 13:37:33 -0700 Subject: [PATCH] Use larger buffer for static file copy #304 (#311) --- src/Microsoft.Owin.StaticFiles/StreamCopyOperation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Owin.StaticFiles/StreamCopyOperation.cs b/src/Microsoft.Owin.StaticFiles/StreamCopyOperation.cs index 1402682b..636b2b31 100644 --- a/src/Microsoft.Owin.StaticFiles/StreamCopyOperation.cs +++ b/src/Microsoft.Owin.StaticFiles/StreamCopyOperation.cs @@ -13,7 +13,7 @@ namespace Microsoft.Owin.StaticFiles // FYI: In most cases the source will be a FileStream and the destination will be to the network. internal class StreamCopyOperation { - private const int DefaultBufferSize = 1024 * 16; + private const int DefaultBufferSize = 1024 * 64; private readonly TaskCompletionSource _tcs; private readonly Stream _source;