mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Increase timouts
This commit is contained in:
parent
e770684397
commit
dea56d0903
5 changed files with 6 additions and 6 deletions
|
@ -65,7 +65,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
|||
|
||||
@Slf4j
|
||||
public abstract class TradeProtocol {
|
||||
private static final long TIMEOUT = 90;
|
||||
private static final long TIMEOUT = 180;
|
||||
|
||||
protected final ProcessModel processModel;
|
||||
private final DecryptedDirectMessageListener decryptedDirectMessageListener;
|
||||
|
|
|
@ -123,8 +123,8 @@ public class HttpClientImpl implements HttpClient {
|
|||
try {
|
||||
connection = (HttpURLConnection) url.openConnection();
|
||||
connection.setRequestMethod("GET");
|
||||
connection.setConnectTimeout((int) TimeUnit.SECONDS.toMillis(30));
|
||||
connection.setReadTimeout((int) TimeUnit.SECONDS.toMillis(30));
|
||||
connection.setConnectTimeout((int) TimeUnit.SECONDS.toMillis(120));
|
||||
connection.setReadTimeout((int) TimeUnit.SECONDS.toMillis(120));
|
||||
connection.setRequestProperty("User-Agent", "bisq/" + Version.VERSION);
|
||||
if (headerKey != null && headerValue != null)
|
||||
connection.setRequestProperty(headerKey, headerValue);
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.jetbrains.annotations.NotNull;
|
|||
|
||||
@Slf4j
|
||||
public class GetDataRequestHandler {
|
||||
private static final long TIMEOUT = 90;
|
||||
private static final long TIMEOUT = 180;
|
||||
|
||||
private static final int MAX_ENTRIES = 10000;
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ import static com.google.common.base.Preconditions.checkArgument;
|
|||
@Slf4j
|
||||
class GetPeersRequestHandler {
|
||||
// We want to keep timeout short here
|
||||
private static final long TIMEOUT = 40;
|
||||
private static final long TIMEOUT = 90;
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -46,7 +46,7 @@ import javax.annotation.Nullable;
|
|||
@Slf4j
|
||||
class PeerExchangeHandler implements MessageListener {
|
||||
// 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;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue