Increase timouts

This commit is contained in:
chimp1984 2020-09-13 13:41:47 -05:00
parent e770684397
commit dea56d0903
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3
5 changed files with 6 additions and 6 deletions

View file

@ -65,7 +65,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
@Slf4j @Slf4j
public abstract class TradeProtocol { public abstract class TradeProtocol {
private static final long TIMEOUT = 90; private static final long TIMEOUT = 180;
protected final ProcessModel processModel; protected final ProcessModel processModel;
private final DecryptedDirectMessageListener decryptedDirectMessageListener; private final DecryptedDirectMessageListener decryptedDirectMessageListener;

View file

@ -123,8 +123,8 @@ public class HttpClientImpl implements HttpClient {
try { try {
connection = (HttpURLConnection) url.openConnection(); connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET"); connection.setRequestMethod("GET");
connection.setConnectTimeout((int) TimeUnit.SECONDS.toMillis(30)); connection.setConnectTimeout((int) TimeUnit.SECONDS.toMillis(120));
connection.setReadTimeout((int) TimeUnit.SECONDS.toMillis(30)); connection.setReadTimeout((int) TimeUnit.SECONDS.toMillis(120));
connection.setRequestProperty("User-Agent", "bisq/" + Version.VERSION); connection.setRequestProperty("User-Agent", "bisq/" + Version.VERSION);
if (headerKey != null && headerValue != null) if (headerKey != null && headerValue != null)
connection.setRequestProperty(headerKey, headerValue); connection.setRequestProperty(headerKey, headerValue);

View file

@ -40,7 +40,7 @@ import org.jetbrains.annotations.NotNull;
@Slf4j @Slf4j
public class GetDataRequestHandler { public class GetDataRequestHandler {
private static final long TIMEOUT = 90; private static final long TIMEOUT = 180;
private static final int MAX_ENTRIES = 10000; private static final int MAX_ENTRIES = 10000;

View file

@ -42,7 +42,7 @@ import static com.google.common.base.Preconditions.checkArgument;
@Slf4j @Slf4j
class GetPeersRequestHandler { class GetPeersRequestHandler {
// We want to keep timeout short here // We want to keep timeout short here
private static final long TIMEOUT = 40; private static final long TIMEOUT = 90;
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////

View file

@ -46,7 +46,7 @@ import javax.annotation.Nullable;
@Slf4j @Slf4j
class PeerExchangeHandler implements MessageListener { class PeerExchangeHandler implements MessageListener {
// We want to keep timeout short here // We want to keep timeout short here
private static final long TIMEOUT = 40; private static final long TIMEOUT = 90;
private static final int DELAY_MS = 500; private static final int DELAY_MS = 500;