实现请求连接数等限制

This commit is contained in:
刘祥超
2021-12-12 11:44:58 +08:00
parent 31a04b32b1
commit 15c952e6eb
7 changed files with 568 additions and 159 deletions

View File

@@ -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
}
}
}
}