mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 06:40:25 +08:00
设置文件句柄最大缓存为65535
This commit is contained in:
@@ -38,6 +38,9 @@ func NewOpenFileCache(maxCount int) (*OpenFileCache, error) {
|
|||||||
if maxCount <= 0 {
|
if maxCount <= 0 {
|
||||||
maxCount = 16384
|
maxCount = 16384
|
||||||
}
|
}
|
||||||
|
if maxCount > 65535 {
|
||||||
|
maxCount = 65535
|
||||||
|
}
|
||||||
|
|
||||||
var cache = &OpenFileCache{
|
var cache = &OpenFileCache{
|
||||||
maxCount: maxCount,
|
maxCount: maxCount,
|
||||||
|
|||||||
Reference in New Issue
Block a user