aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/server_async.cc
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-09-28 16:30:55 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-09-28 16:30:55 -0700
commit0c80c7d12c7affaea272c127bb6cad10c5f07a44 (patch)
treeae3e63a695b7e766f65b7bb223542d8cc08187d2 /test/cpp/qps/server_async.cc
parentdb1a5cce471cb038953f4221401142da85c2412a (diff)
Collecting failure status progress
Diffstat (limited to 'test/cpp/qps/server_async.cc')
-rw-r--r--test/cpp/qps/server_async.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/cpp/qps/server_async.cc b/test/cpp/qps/server_async.cc
index 082b4bc72f..1163b765e3 100644
--- a/test/cpp/qps/server_async.cc
+++ b/test/cpp/qps/server_async.cc
@@ -37,6 +37,7 @@
#include <mutex>
#include <thread>
+#include <grpc++/buffer_pool.h>
#include <grpc++/generic/async_generic_service.h>
#include <grpc++/security/server_credentials.h>
#include <grpc++/server.h>
@@ -95,6 +96,11 @@ class AsyncQpsServerTest : public Server {
srv_cqs_.emplace_back(builder.AddCompletionQueue());
}
+ if (config.buffer_pool_size() > 0) {
+ builder.SetBufferPool(
+ BufferPool("AsyncQpsServerTest").Resize(config.buffer_pool_size()));
+ }
+
server_ = builder.BuildAndStart();
using namespace std::placeholders;