Commit ae177d1a authored by TousakaRin's avatar TousakaRin

Fix bug: server's cl should be reset when restart

parent 75cfdf6a
...@@ -877,7 +877,13 @@ int Server::StartInternal(const butil::ip_t& ip, ...@@ -877,7 +877,13 @@ int Server::StartInternal(const butil::ip_t& ip,
_cl = ConcurrencyLimiter::CreateConcurrencyLimiterOrDie( _cl = ConcurrencyLimiter::CreateConcurrencyLimiterOrDie(
_options.max_concurrency); _options.max_concurrency);
_cl->Expose("Global_Concurrency_Limiter"); _cl->Expose("Global_Concurrency_Limiter");
} else {
if (_cl) {
_cl->Destroy();
} }
_cl = NULL;
}
for (MethodMap::iterator it = _method_map.begin(); for (MethodMap::iterator it = _method_map.begin();
it != _method_map.end(); ++it) { it != _method_map.end(); ++it) {
if (it->second.is_builtin_service) { if (it->second.is_builtin_service) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment