mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-16 01:50:26 +08:00
优化缓存相关代码
This commit is contained in:
@@ -1721,10 +1721,10 @@ func (this *HTTPRequest) bytePool(contentLength int64) *utils.BytePool {
|
||||
return utils.BytePool1k
|
||||
}
|
||||
if contentLength < 32768 { // 32K
|
||||
return utils.BytePool4k
|
||||
return utils.BytePool16k
|
||||
}
|
||||
if contentLength < 131072 { // 128K
|
||||
return utils.BytePool16k
|
||||
return utils.BytePool32k
|
||||
}
|
||||
return utils.BytePool32k
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user