From be05a52e4096a4545499f0cd69bb13b442e760cc Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Sun, 17 Apr 2016 17:42:28 +0200 Subject: [PATCH] increase max size for attachments --- network/src/main/java/io/bitsquare/p2p/network/Connection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/src/main/java/io/bitsquare/p2p/network/Connection.java b/network/src/main/java/io/bitsquare/p2p/network/Connection.java index 56609431ad..e76af68c10 100644 --- a/network/src/main/java/io/bitsquare/p2p/network/Connection.java +++ b/network/src/main/java/io/bitsquare/p2p/network/Connection.java @@ -62,7 +62,7 @@ public class Connection implements MessageListener { // Static /////////////////////////////////////////////////////////////////////////////////////////// - private static final int MAX_MSG_SIZE = 100 * 1024; // 100 kb of compressed data + private static final int MAX_MSG_SIZE = 500 * 1024; // 500 kb //TODO decrease limits again after testing private static final int MSG_THROTTLE_PER_SEC = 50; // With MAX_MSG_SIZE of 100kb results in bandwidth of 5 mbit/sec private static final int MSG_THROTTLE_PER_10_SEC = 500; // With MAX_MSG_SIZE of 100kb results in bandwidth of 50 mbit/sec for 10 sec