From 413e8556492f38e276f74aeb64e381cb8067c368 Mon Sep 17 00:00:00 2001 From: NuttyShrimp Date: Tue, 23 Apr 2024 16:39:00 +0200 Subject: [PATCH] fix(ws-fetcher): infinite timeout --- src/main/java/telraam/station/websocket/WebsocketClient.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/telraam/station/websocket/WebsocketClient.java b/src/main/java/telraam/station/websocket/WebsocketClient.java index 25b7bb4..260baee 100644 --- a/src/main/java/telraam/station/websocket/WebsocketClient.java +++ b/src/main/java/telraam/station/websocket/WebsocketClient.java @@ -27,6 +27,8 @@ public void listen() throws RuntimeException { try { WebSocketContainer container = ContainerProvider.getWebSocketContainer(); container.setDefaultMaxTextMessageBufferSize(100 * 1048576); // 100Mb + container.setDefaultMaxSessionIdleTimeout(0); + container.setAsyncSendTimeout(0); container.connectToServer(this, endpoint); } catch (Exception e) { throw new RuntimeException(e);