Skip to content

Commit c23f453

Browse files
committed
chore: release v0.20.3
1 parent 8152b2e commit c23f453

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ The format is based on [Keep a Changelog].
44

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

7+
## [v0.20.3] - 2023-10-24
8+
9+
This release fixes a cancel-safety issue in the server's graceful shutdown which could lead to high CPU usage.
10+
11+
### [Fixed]
12+
- server: graceful shutdown distinguish between stopped and conn closed ([#1220](https://github.com/paritytech/jsonrpsee/pull/1220))
13+
- server: graceful shutdown fix cancel-safety issue ([#1218](https://github.com/paritytech/jsonrpsee/pull/1218))
14+
- server: graceful shutdown check `Incoming::Closed` ([#1216](https://github.com/paritytech/jsonrpsee/pull/1216))
15+
716
## [v0.20.2] - 2023-10-13
817

918
This release removes the bounded buffer check which was intended to provide

Cargo.toml

+9-9
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resolver = "2"
1919

2020
[workspace.package]
2121
authors = ["Parity Technologies <[email protected]>", "Pierre Krieger <[email protected]>"]
22-
version = "0.20.2"
22+
version = "0.20.3"
2323
edition = "2021"
2424
rust-version = "1.64.0"
2525
license = "MIT"
@@ -30,11 +30,11 @@ keywords = ["jsonrpc", "json", "http", "websocket", "WASM"]
3030
readme = "README.md"
3131

3232
[workspace.dependencies]
33-
jsonrpsee-types = { path = "types", version = "0.20.2" }
34-
jsonrpsee-core = { path = "core", version = "0.20.2" }
35-
jsonrpsee-server = { path = "server", version = "0.20.2" }
36-
jsonrpsee-ws-client = { path = "client/ws-client", version = "0.20.2" }
37-
jsonrpsee-http-client = { path = "client/http-client", version = "0.20.2" }
38-
jsonrpsee-wasm-client = { path = "client/wasm-client", version = "0.20.2" }
39-
jsonrpsee-client-transport = { path = "client/transport", version = "0.20.2" }
40-
jsonrpsee-proc-macros = { path = "proc-macros", version = "0.20.2" }
33+
jsonrpsee-types = { path = "types", version = "0.20.3" }
34+
jsonrpsee-core = { path = "core", version = "0.20.3" }
35+
jsonrpsee-server = { path = "server", version = "0.20.3" }
36+
jsonrpsee-ws-client = { path = "client/ws-client", version = "0.20.3" }
37+
jsonrpsee-http-client = { path = "client/http-client", version = "0.20.3" }
38+
jsonrpsee-wasm-client = { path = "client/wasm-client", version = "0.20.3" }
39+
jsonrpsee-client-transport = { path = "client/transport", version = "0.20.3" }
40+
jsonrpsee-proc-macros = { path = "proc-macros", version = "0.20.3" }

server/src/transport/ws.rs

+1
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ where
431431
Either::Left((Some(Ok(Incoming::Data(d))), s)) => break Receive::Ok(d, s),
432432
// Got a pong response, update our "last seen" timestamp.
433433
Either::Left((Some(Ok(Incoming::Pong)), s)) => {
434+
tracing::debug!("Received pong");
434435
stopped = s;
435436
}
436437
// Received an error, terminate the connection.

0 commit comments

Comments
 (0)