浏览代码

In practice 32k buffer is never fully used.

V2Ray 10 年之前
父节点
当前提交
4320c14efd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/net/transport.go

+ 1 - 1
common/net/transport.go

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