Skip to content

Commit 312beae

Browse files
docs: add comment explaining 80KB buffer size matches .NET default
1 parent 4e72c55 commit 312beae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/FsHttp/Helper.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module Stream =
9494

9595
let copyToCallbackAsync (target: Stream) callback (source: Stream) =
9696
async {
97-
let buffer = Array.create 81920 (byte 0)
97+
let buffer = Array.create 81920 (byte 0) // 80KB matches .NET's Stream.CopyToAsync default buffer size
9898
let logTimeSpan = TimeSpan.FromSeconds 1.5
9999
let mutable continueLooping = true
100100
let mutable overallBytesCount = 0

0 commit comments

Comments
 (0)