openethereum/parity
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
..
cli Ensure jsonrpc threading settings are sane (#11267) 2019-11-18 19:40:48 +01:00
db fix compile warnings (#10993) 2019-08-27 17:29:33 +02:00
light_helpers fix compile warnings (#10993) 2019-08-27 17:29:33 +02:00
logger Update kvdb, kvdb-rocksdb and h2 (#11091) 2019-09-27 23:29:14 +02:00
account_utils.rs ethcore/res: add mordor testnet configuration (#11200) 2019-11-02 12:26:38 +01:00
account.rs Upgrade to parity-crypto 0.4 (#10650) 2019-05-28 07:50:10 +02:00
blockchain.rs [informant]: MillisecondDuration -> as_millis() (#11211) 2019-10-28 15:03:28 +01:00
cache.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
configuration.rs Ensure jsonrpc threading settings are sane (#11267) 2019-11-18 19:40:48 +01:00
deprecated.rs Ensure jsonrpc threading settings are sane (#11267) 2019-11-18 19:40:48 +01:00
export_hardcoded_sync.rs [export hardcoded sync]: use debug for H256 (#11204) 2019-10-25 18:12:14 +02:00
helpers.rs Use provided usd-per-eth value if an endpoint is specified (#11209) 2019-10-29 12:18:30 +01:00
informant.rs Use a lock instead of atomics for snapshot Progress (#11197) 2019-10-28 18:24:45 +01:00
ipfs.rs fix compile warnings (#10993) 2019-08-27 17:29:33 +02:00
lib.rs Ensure jsonrpc threading settings are sane (#11267) 2019-11-18 19:40:48 +01:00
main.rs Insert explicit warning into the panic hook (#11225) 2019-10-31 16:17:12 +01:00
modules.rs Extract snapshot to own crate (#11010) 2019-09-03 11:29:25 +02:00
params.rs ethcore/res: add mordor testnet configuration (#11200) 2019-11-02 12:26:38 +01:00
presale.rs Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
rpc_apis.rs Fix misc compile warnings (#11258) 2019-11-14 00:01:21 +01:00
rpc.rs Ensure jsonrpc threading settings are sane (#11267) 2019-11-18 19:40:48 +01:00
run.rs Ensure jsonrpc threading settings are sane (#11267) 2019-11-18 19:40:48 +01:00
secretstore.rs Crypto primitives removed from ethkey (#11174) 2019-10-23 13:03:46 +02:00
signer.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
snapshot_cmd.rs Use a lock instead of atomics for snapshot Progress (#11197) 2019-10-28 18:24:45 +01:00
stratum.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
upgrade.rs Add message to IO errors (#10324) 2019-02-18 20:39:38 +03:00
user_defaults.rs Extract the Engine trait (#10958) 2019-08-15 17:59:22 +02:00