From 6fedc8177eca5c4e20f4403bfc939040b55369c4 Mon Sep 17 00:00:00 2001 From: HenrikJannsen Date: Fri, 16 Dec 2022 17:23:17 -0500 Subject: [PATCH] Increase timeouts from 3 to 4 min. Signed-off-by: HenrikJannsen --- .../core/dao/node/full/network/GetBlocksRequestHandler.java | 2 +- .../bisq/core/dao/node/lite/network/RequestBlocksHandler.java | 2 +- p2p/src/main/java/bisq/network/p2p/network/Connection.java | 2 +- .../bisq/network/p2p/peers/getdata/GetDataRequestHandler.java | 2 +- .../java/bisq/network/p2p/peers/getdata/RequestDataHandler.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/bisq/core/dao/node/full/network/GetBlocksRequestHandler.java b/core/src/main/java/bisq/core/dao/node/full/network/GetBlocksRequestHandler.java index 98ce2db2399..2013e5d5e75 100644 --- a/core/src/main/java/bisq/core/dao/node/full/network/GetBlocksRequestHandler.java +++ b/core/src/main/java/bisq/core/dao/node/full/network/GetBlocksRequestHandler.java @@ -49,7 +49,7 @@ */ @Slf4j class GetBlocksRequestHandler { - private static final long TIMEOUT_MIN = 3; + private static final long TIMEOUT_MIN = 4; /////////////////////////////////////////////////////////////////////////////////////////// diff --git a/core/src/main/java/bisq/core/dao/node/lite/network/RequestBlocksHandler.java b/core/src/main/java/bisq/core/dao/node/lite/network/RequestBlocksHandler.java index 752e4829f87..8c72b8fb2cd 100644 --- a/core/src/main/java/bisq/core/dao/node/lite/network/RequestBlocksHandler.java +++ b/core/src/main/java/bisq/core/dao/node/lite/network/RequestBlocksHandler.java @@ -51,7 +51,7 @@ */ @Slf4j public class RequestBlocksHandler implements MessageListener { - private static final long TIMEOUT_MIN = 3; + private static final long TIMEOUT_MIN = 4; /////////////////////////////////////////////////////////////////////////////////////////// diff --git a/p2p/src/main/java/bisq/network/p2p/network/Connection.java b/p2p/src/main/java/bisq/network/p2p/network/Connection.java index 757879d23fd..be0a3390d66 100644 --- a/p2p/src/main/java/bisq/network/p2p/network/Connection.java +++ b/p2p/src/main/java/bisq/network/p2p/network/Connection.java @@ -108,7 +108,7 @@ public class Connection implements HasCapabilities, Runnable, MessageListener { private static final int PERMITTED_MESSAGE_SIZE = 200 * 1024; // 200 kb private static final int MAX_PERMITTED_MESSAGE_SIZE = 10 * 1024 * 1024; // 10 MB (425 offers resulted in about 660 kb, mailbox msg will add more to it) offer has usually 2 kb, mailbox 3kb. //TODO decrease limits again after testing - private static final int SOCKET_TIMEOUT = (int) TimeUnit.SECONDS.toMillis(180); + private static final int SOCKET_TIMEOUT = (int) TimeUnit.SECONDS.toMillis(240); public static int getPermittedMessageSize() { return PERMITTED_MESSAGE_SIZE; diff --git a/p2p/src/main/java/bisq/network/p2p/peers/getdata/GetDataRequestHandler.java b/p2p/src/main/java/bisq/network/p2p/peers/getdata/GetDataRequestHandler.java index 9e453f985bc..02aab8e1645 100644 --- a/p2p/src/main/java/bisq/network/p2p/peers/getdata/GetDataRequestHandler.java +++ b/p2p/src/main/java/bisq/network/p2p/peers/getdata/GetDataRequestHandler.java @@ -41,7 +41,7 @@ @Slf4j public class GetDataRequestHandler { - private static final long TIMEOUT = 180; + private static final long TIMEOUT = 240; private static final int MAX_ENTRIES = 5000; diff --git a/p2p/src/main/java/bisq/network/p2p/peers/getdata/RequestDataHandler.java b/p2p/src/main/java/bisq/network/p2p/peers/getdata/RequestDataHandler.java index d9140f6a9a8..42b3ee67d86 100644 --- a/p2p/src/main/java/bisq/network/p2p/peers/getdata/RequestDataHandler.java +++ b/p2p/src/main/java/bisq/network/p2p/peers/getdata/RequestDataHandler.java @@ -54,7 +54,7 @@ @Slf4j class RequestDataHandler implements MessageListener { - private static final long TIMEOUT = 180; + private static final long TIMEOUT = 240; private NodeAddress peersNodeAddress; private String getDataRequestType;