forked from Qortal/qortal
Added "maxDataPeers" setting to reserve 4 connections by default for direct QDN data requests.
This commit is contained in:
parent
dc34eed203
commit
6e49d20383
@ -189,6 +189,8 @@ public class Settings {
|
|||||||
private int minOutboundPeers = 16;
|
private int minOutboundPeers = 16;
|
||||||
/** Maximum number of peer connections we allow. */
|
/** Maximum number of peer connections we allow. */
|
||||||
private int maxPeers = 32;
|
private int maxPeers = 32;
|
||||||
|
/** Number of slots to reserve for short-lived QDN data transfers */
|
||||||
|
private int maxDataPeers = 4;
|
||||||
/** Maximum number of threads for network engine. */
|
/** Maximum number of threads for network engine. */
|
||||||
private int maxNetworkThreadPoolSize = 32;
|
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. */
|
||||||
@ -646,6 +648,10 @@ public class Settings {
|
|||||||
return this.maxPeers;
|
return this.maxPeers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getMaxDataPeers() {
|
||||||
|
return this.maxDataPeers;
|
||||||
|
}
|
||||||
|
|
||||||
public int getMaxNetworkThreadPoolSize() {
|
public int getMaxNetworkThreadPoolSize() {
|
||||||
return this.maxNetworkThreadPoolSize;
|
return this.maxNetworkThreadPoolSize;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user