Skip to content

Commit

Permalink
chore: release v0.20.3
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 committed Oct 24, 2023
1 parent 8152b2e commit c23f453
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ The format is based on [Keep a Changelog].

[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [v0.20.3] - 2023-10-24

This release fixes a cancel-safety issue in the server's graceful shutdown which could lead to high CPU usage.

### [Fixed]
- server: graceful shutdown distinguish between stopped and conn closed ([#1220](https://github.com/paritytech/jsonrpsee/pull/1220))
- server: graceful shutdown fix cancel-safety issue ([#1218](https://github.com/paritytech/jsonrpsee/pull/1218))
- server: graceful shutdown check `Incoming::Closed` ([#1216](https://github.com/paritytech/jsonrpsee/pull/1216))

## [v0.20.2] - 2023-10-13

This release removes the bounded buffer check which was intended to provide
Expand Down
18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resolver = "2"

[workspace.package]
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
version = "0.20.2"
version = "0.20.3"
edition = "2021"
rust-version = "1.64.0"
license = "MIT"
Expand All @@ -30,11 +30,11 @@ keywords = ["jsonrpc", "json", "http", "websocket", "WASM"]
readme = "README.md"

[workspace.dependencies]
jsonrpsee-types = { path = "types", version = "0.20.2" }
jsonrpsee-core = { path = "core", version = "0.20.2" }
jsonrpsee-server = { path = "server", version = "0.20.2" }
jsonrpsee-ws-client = { path = "client/ws-client", version = "0.20.2" }
jsonrpsee-http-client = { path = "client/http-client", version = "0.20.2" }
jsonrpsee-wasm-client = { path = "client/wasm-client", version = "0.20.2" }
jsonrpsee-client-transport = { path = "client/transport", version = "0.20.2" }
jsonrpsee-proc-macros = { path = "proc-macros", version = "0.20.2" }
jsonrpsee-types = { path = "types", version = "0.20.3" }
jsonrpsee-core = { path = "core", version = "0.20.3" }
jsonrpsee-server = { path = "server", version = "0.20.3" }
jsonrpsee-ws-client = { path = "client/ws-client", version = "0.20.3" }
jsonrpsee-http-client = { path = "client/http-client", version = "0.20.3" }
jsonrpsee-wasm-client = { path = "client/wasm-client", version = "0.20.3" }
jsonrpsee-client-transport = { path = "client/transport", version = "0.20.3" }
jsonrpsee-proc-macros = { path = "proc-macros", version = "0.20.3" }
1 change: 1 addition & 0 deletions server/src/transport/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ where
Either::Left((Some(Ok(Incoming::Data(d))), s)) => break Receive::Ok(d, s),
// Got a pong response, update our "last seen" timestamp.
Either::Left((Some(Ok(Incoming::Pong)), s)) => {
tracing::debug!("Received pong");
stopped = s;
}
// Received an error, terminate the connection.
Expand Down

0 comments on commit c23f453

Please sign in to comment.