aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-06 16:23:19 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-07-06 16:23:19 -0700
commitf9899d27f81c5f736411b4b36f7fa80a79a0f38b (patch)
treef52eff07cef8cd897636b3fb703422cc027248f3 /test
parent43f5ac6a28f02e9d154b36668717891252e87d64 (diff)
parentcd54c60c084010012460b80918861b1463797b64 (diff)
Merge github.com:grpc/grpc into tis-but-thy-name
Diffstat (limited to 'test')
-rw-r--r--test/cpp/qps/client_async.cc9
-rw-r--r--test/cpp/qps/qps_test_openloop.cc2
2 files changed, 10 insertions, 1 deletions
diff --git a/test/cpp/qps/client_async.cc b/test/cpp/qps/client_async.cc
index 8c8d927d15..e1e44f9ac0 100644
--- a/test/cpp/qps/client_async.cc
+++ b/test/cpp/qps/client_async.cc
@@ -199,6 +199,15 @@ class AsyncClient : public Client {
delete ClientRpcContext::detag(got_tag);
}
}
+ // Now clear out all the pre-allocated idle contexts
+ for (int ch = 0; ch < channel_count_; ch++) {
+ while (!contexts_[ch].empty()) {
+ // Get an idle context from the front of the list
+ auto* ctx = *(contexts_[ch].begin());
+ contexts_[ch].pop_front();
+ delete ctx;
+ }
+ }
}
bool ThreadFunc(Histogram* histogram,
diff --git a/test/cpp/qps/qps_test_openloop.cc b/test/cpp/qps/qps_test_openloop.cc
index 52873b2987..96a9b4504c 100644
--- a/test/cpp/qps/qps_test_openloop.cc
+++ b/test/cpp/qps/qps_test_openloop.cc
@@ -60,7 +60,7 @@ static void RunQPS() {
client_config.set_rpc_type(UNARY);
client_config.set_load_type(POISSON);
client_config.mutable_load_params()->
- mutable_poisson()->set_offered_load(10000.0);
+ mutable_poisson()->set_offered_load(1000.0);
ServerConfig server_config;
server_config.set_server_type(ASYNC_SERVER);