Explorar o código

In practice 32k buffer is never fully used.

V2Ray %!s(int64=10) %!d(string=hai) anos
pai
achega
4320c14efd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/net/transport.go

+ 1 - 1
common/net/transport.go

@@ -5,7 +5,7 @@ import (
 )
 
 const (
-	bufferSize = 32 * 1024
+	bufferSize = 4 * 1024
 )
 
 // ReaderToChan dumps all content from a given reader to a chan by constantly reading it until EOF.