mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-19 02:41:22 +00:00
Merge pull request #257 from kennycud/master
Additional Settings and Timeout threshold update
This commit is contained in:
commit
49e9a53c6a
@ -45,7 +45,7 @@ public class ArbitraryDataManager extends Thread {
|
|||||||
public static final long ARBITRARY_REQUEST_TIMEOUT = 12 * 1000L; // ms
|
public static final long ARBITRARY_REQUEST_TIMEOUT = 12 * 1000L; // ms
|
||||||
|
|
||||||
/** Maximum time to hold information about an in-progress relay */
|
/** Maximum time to hold information about an in-progress relay */
|
||||||
public static final long ARBITRARY_RELAY_TIMEOUT = 60 * 1000L; // ms
|
public static final long ARBITRARY_RELAY_TIMEOUT = 90 * 1000L; // ms
|
||||||
|
|
||||||
/** Maximum time to hold direct peer connection information */
|
/** Maximum time to hold direct peer connection information */
|
||||||
public static final long ARBITRARY_DIRECT_CONNECTION_INFO_TIMEOUT = 2 * 60 * 1000L; // ms
|
public static final long ARBITRARY_DIRECT_CONNECTION_INFO_TIMEOUT = 2 * 60 * 1000L; // ms
|
||||||
|
@ -756,7 +756,7 @@ public class Settings {
|
|||||||
private void setAdditionalDefaults() {
|
private void setAdditionalDefaults() {
|
||||||
// Populate defaults for maxThreadsPerMessageType. If any are specified in settings.json, they will take priority.
|
// Populate defaults for maxThreadsPerMessageType. If any are specified in settings.json, they will take priority.
|
||||||
maxThreadsPerMessageType.add(new ThreadLimit("ARBITRARY_DATA_FILE", 5));
|
maxThreadsPerMessageType.add(new ThreadLimit("ARBITRARY_DATA_FILE", 5));
|
||||||
maxThreadsPerMessageType.add(new ThreadLimit("GET_ARBITRARY_DATA_FILE", 5));
|
maxThreadsPerMessageType.add(new ThreadLimit("GET_ARBITRARY_DATA_FILE", 15));
|
||||||
maxThreadsPerMessageType.add(new ThreadLimit("ARBITRARY_DATA", 5));
|
maxThreadsPerMessageType.add(new ThreadLimit("ARBITRARY_DATA", 5));
|
||||||
maxThreadsPerMessageType.add(new ThreadLimit("GET_ARBITRARY_DATA", 5));
|
maxThreadsPerMessageType.add(new ThreadLimit("GET_ARBITRARY_DATA", 5));
|
||||||
maxThreadsPerMessageType.add(new ThreadLimit("ARBITRARY_DATA_FILE_LIST", 50));
|
maxThreadsPerMessageType.add(new ThreadLimit("ARBITRARY_DATA_FILE_LIST", 50));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user