Skip to content

Commit

Permalink
Merge pull request #6467 from HenrikJannsen/increase_timeouts
Browse files Browse the repository at this point in the history
Increase timeouts from 3 to 4 min.
  • Loading branch information
alejandrogarcia83 authored Dec 18, 2022
2 parents 5ba9667 + 6fedc81 commit 51f9e8b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
*/
@Slf4j
class GetBlocksRequestHandler {
private static final long TIMEOUT_MIN = 3;
private static final long TIMEOUT_MIN = 4;


///////////////////////////////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
*/
@Slf4j
public class RequestBlocksHandler implements MessageListener {
private static final long TIMEOUT_MIN = 3;
private static final long TIMEOUT_MIN = 4;


///////////////////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion p2p/src/main/java/bisq/network/p2p/network/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 51f9e8b

Please sign in to comment.