Added "maxDataPeers" setting to reserve 4 connections by default for direct QDN data requests.

This commit is contained in:
CalDescent 2022-05-01 11:02:41 +01:00
parent dc34eed203
commit 6e49d20383

View File

@ -189,6 +189,8 @@ public class Settings {
private int minOutboundPeers = 16;
/** Maximum number of peer connections we allow. */
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. */
private int maxNetworkThreadPoolSize = 32;
/** Maximum number of threads for network proof-of-work compute, used during handshaking. */
@ -646,6 +648,10 @@ public class Settings {
return this.maxPeers;
}
public int getMaxDataPeers() {
return this.maxDataPeers;
}
public int getMaxNetworkThreadPoolSize() {
return this.maxNetworkThreadPoolSize;
}