8000 Increase the size of the very small read buffer · wtf3505-git/libgit2sharp@a46fb80 · GitHub
[go: up one dir, main page]

Skip to content

Commit a46fb80

Browse files
AArnottethomson
authored andcommitted
Increase the size of the very small read buffer
1 parent ae1563d commit a46fb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/Core/ManagedHttpSmartSubtransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private HttpResponseMessage GetResponseWithRedirects()
225225

226226
public override int Read(Stream dataStream, long length, out long readTotal)
227227
{
228-
byte[] buffer = new byte[16];
228+
byte[] buffer = new byte[4096];
229229
readTotal = 0;
230230

231231
if (responseStream == null)

0 commit comments

Comments
 (0)
0