Skip to content

Commit ae59e4b

Browse files
authored
Use larger buffer for static file copy #304 (#311)
1 parent 0fc4611 commit ae59e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Owin.StaticFiles/StreamCopyOperation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Microsoft.Owin.StaticFiles
1313
// FYI: In most cases the source will be a FileStream and the destination will be to the network.
1414
internal class StreamCopyOperation
1515
{
16-
private const int DefaultBufferSize = 1024 * 16;
16+
private const int DefaultBufferSize = 1024 * 64;
1717

1818
private readonly TaskCompletionSource<object> _tcs;
1919
private readonly Stream _source;

0 commit comments

Comments
 (0)