MCPcopy Create free account
hub / github.com/apache/thrift / setConcurrentClientLimit

Method setConcurrentClientLimit

lib/cpp/src/thrift/server/TServerFramework.cpp:206–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void TServerFramework::setConcurrentClientLimit(int64_t newLimit) {
207 if (newLimit < 1) {
208 throw std::invalid_argument("newLimit must be greater than zero");
209 }
210 Synchronized sync(mon_);
211 limit_ = newLimit;
212 if (limit_ - clients_ > 0) {
213 mon_.notify();
214 }
215}
216
217void TServerFramework::stop() {
218 // Order is important because serve() releases serverTransport_ when it is

Callers

nothing calls this directly

Calls 1

notifyMethod · 0.45

Tested by

no test coverage detected