mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-04-20 19:55:25 +08:00
实现请求连接数等限制
This commit is contained in:
@@ -159,6 +159,11 @@ func (this *ServerConfig) Init() (results []error) {
|
||||
this.Web.Pages = groupWeb.Pages
|
||||
this.Web.Shutdown = groupWeb.Shutdown
|
||||
}
|
||||
|
||||
// request limit
|
||||
if groupWeb.RequestLimit != nil && groupWeb.RequestLimit.IsPrior {
|
||||
this.Web.RequestLimit = groupWeb.RequestLimit
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user