mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 01:06:04 +00:00
Send buffer of 2 MB
This commit is contained in:
parent
f61992ff38
commit
b2c1badfcb
1 changed files with 1 additions and 1 deletions
|
@ -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<String> queue = Collections.synchronizedList(new ArrayList<>());
|
||||
|
|
Loading…
Reference in a new issue