From 853a6503391a05a3f60b50bb40a7dd4f35588293 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 14 Feb 2020 15:13:47 -0500 Subject: change queue_capacity to max_send_buff_size; adjust the C API --- test/bench_network.cpp | 2 +- test/bench_network_tls.cpp | 2 +- test/test_bounded_recv_buffer.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/bench_network.cpp b/test/bench_network.cpp index 1d52c39..13d9282 100644 --- a/test/bench_network.cpp +++ b/test/bench_network.cpp @@ -81,7 +81,7 @@ struct MyNet: public MsgNetworkByteOp { double stat_timeout = -1): MsgNetworkByteOp(ec, MsgNetworkByteOp::Config( ConnPool::Config() - .queue_capacity(65536) + .max_send_buff_size(65536) ).burst_size(1000)), name(name), ev_period_stat(ec, [this, stat_timeout](TimerEvent &) { diff --git a/test/bench_network_tls.cpp b/test/bench_network_tls.cpp index 47b9347..576056d 100644 --- a/test/bench_network_tls.cpp +++ b/test/bench_network_tls.cpp @@ -81,7 +81,7 @@ struct MyNet: public MsgNetworkByteOp { double stat_timeout = -1): MsgNetworkByteOp(ec, MsgNetworkByteOp::Config( ConnPool::Config() - .queue_capacity(65536) + .max_send_buff_size(65536) .enable_tls(true) .tls_cert_file("alice.pem") .tls_key_file("alice.pem")).burst_size(1000)), diff --git a/test/test_bounded_recv_buffer.cpp b/test/test_bounded_recv_buffer.cpp index b092260..2ea34f6 100644 --- a/test/test_bounded_recv_buffer.cpp +++ b/test/test_bounded_recv_buffer.cpp @@ -83,7 +83,7 @@ struct MyNet: public MsgNetworkByteOp { MsgNetworkByteOp(ec, MsgNetworkByteOp::Config( ConnPool::Config() .max_recv_buff_size(10) - .queue_capacity(10) + .max_send_buff_size(10) ).burst_size(10)), name(name), ev_period_stat(ec, [this, stat_timeout](TimerEvent &) { -- cgit v1.2.3-70-g09d2