From b2c1badfcb93c617c62ea0e00c2bc68c9ea75f4f Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 30 Sep 2022 08:25:15 +0200 Subject: [PATCH] Send buffer of 2 MB --- app/src/extra/java/eu/faircode/email/Send.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/extra/java/eu/faircode/email/Send.java b/app/src/extra/java/eu/faircode/email/Send.java index 0f28b60369..be81975541 100644 --- a/app/src/extra/java/eu/faircode/email/Send.java +++ b/app/src/extra/java/eu/faircode/email/Send.java @@ -69,7 +69,7 @@ public class Send { Uri uri = Uri.parse("wss://" + Uri.parse(host).getHost() + "/api/ws"); WebSocket ws = new WebSocketFactory().createSocket(uri.toString(), TIMEOUT); - ws.setFrameQueueSize(100); + ws.setFrameQueueSize(32); // 32 x 64KB = 2 MB Semaphore sem = new Semaphore(0); List queue = Collections.synchronizedList(new ArrayList<>());