openethereum/parity/cli
David 82c3265858
Ensure jsonrpc threading settings are sane (#11267)
* Ensure jsonrpc threading settings are sane

Starting with `jsonrpc` v14, the "server threads" setting is more important than before and the current default of 1 means the https server is effectively single-threaded. This PR proposes a new default of 4 (and ensures that crazy settings like e.g. `0` are bumped to at least `1`).

Also included: some docs, tests and cosmetics.

* Update parity/rpc.rs

Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com>

* Update parity/rpc.rs

Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com>

* Remove (i.e. deprecate) `--jsonrpc-threads` command line option

* Call numbers NUM

* Don't show a default for --jsonrpc-threads (deprecated)

* Show deprecation warning when using `--jsonrpc-threads` or `processing_threads`

* Update parity/deprecated.rs

Co-Authored-By: Niklas Adolfsson <niklasadolfsson1@gmail.com>

* Fix test

* Fix tests for real
2019-11-18 19:40:48 +01:00
..
presets misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
tests Ensure jsonrpc threading settings are sane (#11267) 2019-11-18 19:40:48 +01:00
mod.rs Ensure jsonrpc threading settings are sane (#11267) 2019-11-18 19:40:48 +01:00
usage_header.txt cli: update usage and version headers (#10924) 2019-09-05 16:07:26 +02:00
usage.rs remove redundant macro println_stderr from parity/cli/usage.rs (#10425) 2019-02-27 10:07:41 +01:00
version.txt cli: update usage and version headers (#10924) 2019-09-05 16:07:26 +02:00