1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 15:36:41 -05:00

increase multi buffer capacity

This commit is contained in:
Darien Raymond 2017-04-16 22:33:20 +02:00
parent e5525715fb
commit d9ea65696a
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -16,7 +16,7 @@ type MultiBufferReader interface {
type MultiBuffer []*Buffer type MultiBuffer []*Buffer
func NewMultiBuffer() MultiBuffer { func NewMultiBuffer() MultiBuffer {
return MultiBuffer(make([]*Buffer, 0, 32)) return MultiBuffer(make([]*Buffer, 0, 128))
} }
func NewMultiBufferValue(b ...*Buffer) MultiBuffer { func NewMultiBufferValue(b ...*Buffer) MultiBuffer {