mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-08 03:00:27 +08:00
response body buffer默认改为16k
This commit is contained in:
@@ -1625,7 +1625,7 @@ func (this *HTTPRequest) addError(err error) {
|
||||
// 计算合适的buffer size
|
||||
func (this *HTTPRequest) bytePool(contentLength int64) *utils.BytePool {
|
||||
if contentLength < 0 {
|
||||
return utils.BytePool4k
|
||||
return utils.BytePool16k
|
||||
}
|
||||
if contentLength < 8192 { // 8K
|
||||
return utils.BytePool1k
|
||||
|
||||
Reference in New Issue
Block a user