瀏覽代碼

Decrease a size of direct pipe buffer

tags/v1.0.4^2
9seconds 6 年之前
父節點
當前提交
b5810c955d
共有 1 個檔案被更改,包括 1 行新增 和 1 行删除
  1. 1
    1
      proxy/direct.go

+ 1
- 1
proxy/direct.go 查看文件

11
 	"github.com/9seconds/mtg/protocol"
11
 	"github.com/9seconds/mtg/protocol"
12
 )
12
 )
13
 
13
 
14
-const directPipeBufferSize = 1024 * 1024
14
+const directPipeBufferSize = 1024
15
 
15
 
16
 var (
16
 var (
17
 	directPipePool = sync.Pool{
17
 	directPipePool = sync.Pool{

Loading…
取消
儲存