-
Notifications
You must be signed in to change notification settings - Fork 51
Fix crashes on SIGINT #1814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix crashes on SIGINT #1814
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you refine the commit message of 725f921?
I think the lines below Errors were:
can be summarized in a few sentences.
And please resolve the conflicts. |
6eeed8b
to
3d7fb50
Compare
It seems the lockfile has some problem with your patched jsonrpc repo. |
3d7fb50
to
2215e42
Compare
} | ||
if let Some(server) = ws_server { | ||
server.close_handle().close(); | ||
server.wait().map_err(|err| format!("Error while closing jsonrpc ws server: {}", err))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use map_erro
only for ws_server?
rpc_server and ipc_server don't need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't touch the interface. jsonrpc
returns Result<()>
only for ws_
@foriequal0 What's the status here? Is it ready to be merged? |
f440038
5b808a6
to
f440038
Compare
…1.17) Update following packages: bytes v0.4.7 -> v0.4.12 parking_lot_core v0.6.1 -> v0.6.2 toml v0.5.1 -> v0.5.3 tokio v0.1.7 -> v0.1.17 Commands were: ``` cargo update --package bytes cargo update --package parking_lot_core:0.6.1 cargo update --package toml:0.5.1 cargo update --package tokio:0.1.7 --precise 0.1.17 ``` Errors were: 1. bytes: jsonrpc requires ^0.4.8, and bytes were pinned to v0.4.7 for sendgrid v0.8.1. 2. parking_lot_core: Amanieu/parking_lot#181 3. toml: `forward_to_deserialize_any_helper` was replaced by forward_to_deserialize_any 4. tokio: `Builder::core_threads` was introduced in 0.1.10
The fix (paritytech/jsonrpc#504) has been merged to `master`. It'll take times to relase, so use the merged master directly.
f440038
to
26f08f2
Compare
I've rebased the PR and changed the package sources to the parity's merged master. |
I'll merge it without waiting for Travis. |
Resolve: #348