Browse Source

ARBITRARY_REQUEST_TIMEOUT increased from 6 to 10 seconds

This is likely longer than needed, but it's best to allow extra for now and then optimize the timeouts once we've had some experience with real world data.
qdn
CalDescent 3 years ago
parent
commit
20ec4cbd14
  1. 2
      src/main/java/org/qortal/controller/arbitrary/ArbitraryDataManager.java

2
src/main/java/org/qortal/controller/arbitrary/ArbitraryDataManager.java

@ -38,7 +38,7 @@ public class ArbitraryDataManager extends Thread {
private int powDifficulty = 14; // Must not be final, as unit tests need to reduce this value private int powDifficulty = 14; // Must not be final, as unit tests need to reduce this value
/** Request timeout when transferring arbitrary data */ /** Request timeout when transferring arbitrary data */
public static final long ARBITRARY_REQUEST_TIMEOUT = 6 * 1000L; // ms public static final long ARBITRARY_REQUEST_TIMEOUT = 10 * 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 = 30 * 1000L; // ms public static final long ARBITRARY_RELAY_TIMEOUT = 30 * 1000L; // ms

Loading…
Cancel
Save