Skip to content

Commit ab30170

Browse files
authored
Update to parity-ws 0.11 (#630)
1 parent 68511bc commit ab30170

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ws/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jsonrpc-server-utils = { version = "17.1", path = "../server-utils" }
1616
log = "0.4"
1717
parking_lot = "0.11.0"
1818
slab = "0.4"
19-
parity-ws = "0.10"
19+
parity-ws = "0.11"
2020

2121
[badges]
2222
travis-ci = { repository = "paritytech/jsonrpc", branch = "master"}

ws/src/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ impl Server {
7070
config.max_connections = max_connections;
7171
// don't accept super large requests
7272
config.max_fragment_size = max_payload_bytes;
73-
config.max_in_buffer_capacity = max_in_buffer_capacity;
74-
config.max_out_buffer_capacity = max_out_buffer_capacity;
73+
config.in_buffer_capacity_hard_limit = max_in_buffer_capacity;
74+
config.out_buffer_capacity_hard_limit = max_out_buffer_capacity;
7575
// don't grow non-final fragments (to prevent DOS)
7676
config.fragments_grow = false;
7777
config.fragments_capacity = cmp::max(1, max_payload_bytes / config.fragment_size);

0 commit comments

Comments
 (0)