mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
Buffer pool is mistakenly generate more buffers under normal situation.
This commit is contained in:
parent
083b1d4736
commit
bf6898539b
@ -97,7 +97,7 @@ func (p *bufferPool) cleanup(tick <-chan time.Time) {
|
||||
<-p.chain
|
||||
continue
|
||||
}
|
||||
for delta := pSize - p.buffers2Keep; delta > 0; delta-- {
|
||||
for delta := p.buffers2Keep - pSize; delta > 0; delta-- {
|
||||
p.chain <- make([]byte, p.bufferSize)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user