mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 01:53:25 +02:00
Prevent Send queue overflow
This commit is contained in:
@@ -69,6 +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);
|
||||
|
||||
Semaphore sem = new Semaphore(0);
|
||||
List<String> queue = Collections.synchronizedList(new ArrayList<>());
|
||||
|
||||
Reference in New Issue
Block a user