Skip to content

Commit

Permalink
Update to parity-ws 0.11 (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
koute committed Jul 20, 2021
1 parent 68511bc commit ab30170
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
4 changes: 2 additions & 2 deletions ws/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ab30170

Please sign in to comment.