Merge pull request #17917 from vjpai/fix_delist

C++ callback server: request spawning limit is supposed to be per-server, not per-method
pull/17923/head
Vijay Pai 6 years ago committed by GitHub
commit 8bf6f02e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/cpp/server/server_cc.cc

@ -444,7 +444,8 @@ class Server::CallbackRequest final : public internal::CompletionQueueTag {
// If this was the last request in the list or it is below the soft
// minimum and there are spare requests available, set up a new one.
if (count == 0 || (count < SOFT_MINIMUM_SPARE_CALLBACK_REQS_PER_METHOD &&
count < SOFT_MAXIMUM_CALLBACK_REQS_OUTSTANDING)) {
req_->server_->callback_reqs_outstanding_ <
SOFT_MAXIMUM_CALLBACK_REQS_OUTSTANDING)) {
auto* new_req = new CallbackRequest(req_->server_, req_->method_index_,
req_->method_, req_->method_tag_);
if (!new_req->Request()) {

Loading…
Cancel
Save