From: Ronald B. <rb...@rb...> - 2017-11-21 18:46:09
|
Hi Yves, >I am using HTMLUnit (latest Version 2.28 from maven). > >The page I am retrieving makes extensive usage of javascript and has a lot of dynamic content. >The page also uses a WebSocket Connection and here sometimes it my occur, that the server sends messages that exceed a 64k limit. > >If this happens, I receive the following exception and after this the page "is broken", meaning, it doesn?t update dynamic contents etc.: > >org.eclipse.jetty.websocket.api.MessageTooLargeException: Text message size [82491] exceeds maximum size [65536] > at org.eclipse.jetty.websocket.api.WebSocketPolicy.assertValidTextMessageSize(WebSocketPolicy.java:140) > >Is there a way to increase the pre-set maximum size? Have just added four new configuration options. Please use the latest Snapshot build from maven (2.29-SNAPSHOT). For changing the limits do something like webClient.getOptions().setWebSocketXXX() And please report if this does the job for you. Hope that helps and HtmlUnit does a nice job for you. RBRi -------------------------- WETATOR Smart web application testing http://www.wetator.org |