enlarge small buffer to fix common mtu size

pull/215/head
v2ray 2016-06-18 17:14:30 +02:00
parent 20f046af0b
commit 16f5f81fe9
1 changed files with 2 additions and 2 deletions

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)