]> git.basschouten.com Git - openhab-addons.git/commitdiff
[lgwebos] Increase limit to 5MB for Websocket text message (#16399)
authorlolodomo <lg.hc@free.fr>
Sat, 17 Feb 2024 10:51:24 +0000 (11:51 +0100)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2024 10:51:24 +0000 (11:51 +0100)
A user reported an error with size 4316809 while previous max was 4194304.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.lgwebos/src/main/java/org/openhab/binding/lgwebos/internal/LGWebOSHandlerFactory.java

index 33a59785651e91f9121416047574ffe6153fc659..3e6c8eb077a98060a243a44d8935ff07cc59ecd1 100644 (file)
@@ -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 {