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