Skip to content

Commit

Permalink
Use larger buffer for static file copy #304 (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tratcher authored Oct 7, 2019
1 parent 0fc4611 commit ae59e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.Owin.StaticFiles/StreamCopyOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<object> _tcs;
private readonly Stream _source;
Expand Down

0 comments on commit ae59e4b

Please sign in to comment.