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:
parent
20f046af0b
commit
16f5f81fe9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user