Increased default maxNetworkThreadPoolSize from 20 to 32

This will hopefully offset some of the additional network demands from arbitrary data requests.
This commit is contained in:
CalDescent 2022-03-05 17:24:55 +00:00
parent 1b036b763c
commit b520838195

View File

@ -190,7 +190,7 @@ public class Settings {
/** Maximum number of peer connections we allow. */ /** Maximum number of peer connections we allow. */
private int maxPeers = 32; private int maxPeers = 32;
/** Maximum number of threads for network engine. */ /** Maximum number of threads for network engine. */
private int maxNetworkThreadPoolSize = 20; private int maxNetworkThreadPoolSize = 32;
/** Maximum number of threads for network proof-of-work compute, used during handshaking. */ /** Maximum number of threads for network proof-of-work compute, used during handshaking. */
private int networkPoWComputePoolSize = 2; private int networkPoWComputePoolSize = 2;
/** Maximum number of retry attempts if a peer fails to respond with the requested data */ /** Maximum number of retry attempts if a peer fails to respond with the requested data */