diff options
author | Determinant <[email protected]> | 2020-02-14 15:13:47 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2020-02-14 15:13:47 -0500 |
commit | 853a6503391a05a3f60b50bb40a7dd4f35588293 (patch) | |
tree | c25dc16a0f5170611d0aa8e3a12d63e98a036342 /test | |
parent | 7dc5ec52b1c419c58c68d7359870a292ab12d7db (diff) |
change queue_capacity to max_send_buff_size; adjust the C API
Diffstat (limited to 'test')
-rw-r--r-- | test/bench_network.cpp | 2 | ||||
-rw-r--r-- | test/bench_network_tls.cpp | 2 | ||||
-rw-r--r-- | test/test_bounded_recv_buffer.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
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 &) { |