From 775d14b36beebe5373516c1f62136100ed7daaa2 Mon Sep 17 00:00:00 2001 From: Jan Bujak Date: Tue, 20 Jul 2021 09:57:53 +0000 Subject: [PATCH] Update to `parity-ws` 0.11 --- ws/Cargo.toml | 2 +- ws/src/server.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ws/Cargo.toml b/ws/Cargo.toml index a03be3f8c..d5842480a 100644 --- a/ws/Cargo.toml +++ b/ws/Cargo.toml @@ -16,7 +16,7 @@ jsonrpc-server-utils = { version = "17.1", path = "../server-utils" } log = "0.4" parking_lot = "0.11.0" slab = "0.4" -parity-ws = "0.10" +parity-ws = "0.11" [badges] travis-ci = { repository = "paritytech/jsonrpc", branch = "master"} diff --git a/ws/src/server.rs b/ws/src/server.rs index 55717dc7e..e5d795f2b 100644 --- a/ws/src/server.rs +++ b/ws/src/server.rs @@ -70,8 +70,8 @@ impl Server { config.max_connections = max_connections; // don't accept super large requests config.max_fragment_size = max_payload_bytes; - config.max_in_buffer_capacity = max_in_buffer_capacity; - config.max_out_buffer_capacity = max_out_buffer_capacity; + config.in_buffer_capacity_hard_limit = max_in_buffer_capacity; + config.out_buffer_capacity_hard_limit = max_out_buffer_capacity; // don't grow non-final fragments (to prevent DOS) config.fragments_grow = false; config.fragments_capacity = cmp::max(1, max_payload_bytes / config.fragment_size);