1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

enlarge small buffer to fix common mtu size

This commit is contained in:
v2ray 2016-06-18 17:14:30 +02:00
parent 20f046af0b
commit 16f5f81fe9

View File

@ -50,11 +50,11 @@ func (p *BufferPool) Free(buffer *Buffer) {
}
const (
SmallBufferSize = 1024 - defaultOffset
SmallBufferSize = 1600 - defaultOffset
BufferSize = 8*1024 - defaultOffset
LargeBufferSize = 64*1024 - defaultOffset
)
var smallPool = NewBufferPool(1024, 64)
var smallPool = NewBufferPool(1600, 128)
var mediumPool = NewBufferPool(8*1024, 128)
var largePool = NewBufferPool(64*1024, 64)