mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-21 04:38:51 -04:00
change conn. timeout
This commit is contained in:
parent
45fb2bfafb
commit
98a3855742
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ public class Connection implements MessageListener {
|
||||||
private static final Logger log = LoggerFactory.getLogger(Connection.class);
|
private static final Logger log = LoggerFactory.getLogger(Connection.class);
|
||||||
private static final int MAX_MSG_SIZE = 5 * 1024 * 1024; // 5 MB of compressed data
|
private static final int MAX_MSG_SIZE = 5 * 1024 * 1024; // 5 MB of compressed data
|
||||||
//timeout on blocking Socket operations like ServerSocket.accept() or SocketInputStream.read()
|
//timeout on blocking Socket operations like ServerSocket.accept() or SocketInputStream.read()
|
||||||
private static final int SOCKET_TIMEOUT = 10 * 60 * 1000; // 10 min.
|
private static final int SOCKET_TIMEOUT = 30 * 60 * 1000; // 30 min.
|
||||||
|
|
||||||
public static int getMaxMsgSize() {
|
public static int getMaxMsgSize() {
|
||||||
return MAX_MSG_SIZE;
|
return MAX_MSG_SIZE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue