From: lolodomo Date: Sat, 17 Feb 2024 10:51:24 +0000 (+0100) Subject: [lgwebos] Increase limit to 5MB for Websocket text message (#16399) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=5f805755fc60347ab7a548b6a11fea7ea1efe2b3;p=openhab-addons.git [lgwebos] Increase limit to 5MB for Websocket text message (#16399) A user reported an error with size 4316809 while previous max was 4194304. Signed-off-by: Laurent Garnier --- diff --git a/bundles/org.openhab.binding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/LGWebOSHandlerFactory.java b/bundles/org.openhab.binding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/LGWebOSHandlerFactory.java index 33a5978565..3e6c8eb077 100644 --- a/bundles/org.openhab.binding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/LGWebOSHandlerFactory.java +++ b/bundles/org.openhab.binding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/LGWebOSHandlerFactory.java @@ -79,8 +79,8 @@ public class LGWebOSHandlerFactory extends BaseThingHandlerFactory { // reduce timeout from default 15sec this.webSocketClient.setConnectTimeout(1000); - // channel and app listing are json docs up to 4MB - this.webSocketClient.getPolicy().setMaxTextMessageSize(4 * 1024 * 1024); + // channel and app listing are json docs up to 5MB + this.webSocketClient.getPolicy().setMaxTextMessageSize(5 * 1024 * 1024); // since this is not using openHAB's shared web socket client we need to start and stop try {