mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-15 09:55:56 -04:00
fixes based on refactored tests (#454)
log trade id with error open dispute chat on user thread fix null arbitrator signature by copying offer payload before modifying
This commit is contained in:
parent
6209c9578a
commit
93472b9759
13 changed files with 94 additions and 89 deletions
|
@ -112,7 +112,6 @@ public class Connection implements HasCapabilities, Runnable, MessageListener {
|
|||
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 MAX_CONNECTION_THREADS = 10;
|
||||
|
||||
public static int getPermittedMessageSize() {
|
||||
return PERMITTED_MESSAGE_SIZE;
|
||||
|
@ -131,7 +130,6 @@ public class Connection implements HasCapabilities, Runnable, MessageListener {
|
|||
@Getter
|
||||
private final String uid;
|
||||
private final ExecutorService singleThreadExecutor = Executors.newSingleThreadExecutor(runnable -> new Thread(runnable, "Connection.java executor-service"));
|
||||
private final ExecutorService connectionThreadPool = Executors.newFixedThreadPool(MAX_CONNECTION_THREADS);
|
||||
|
||||
// holder of state shared between InputHandler and Connection
|
||||
@Getter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue