Setting WebSocket max_message_size to Integer.MAX_VALUE since -1 is an illegal value.
@@ -660,7 +660,7 @@ public class CometDLoadClient implements MeasureConverter {
Map<String, Object> options = new HashMap<>();
options.put(ClientTransport.JSON_CONTEXT_OPTION, new JacksonJSONContextClient());
options.put(ClientTransport.MAX_NETWORK_DELAY_OPTION, Config.MAX_NETWORK_DELAY);
- options.put(ClientTransport.MAX_MESSAGE_SIZE_OPTION, -1);
+ options.put(ClientTransport.MAX_MESSAGE_SIZE_OPTION, Integer.MAX_VALUE);
return new JettyHttpClientTransport(options, httpClient) {
@Override
protected void customize(Request request) {
@@ -675,7 +675,7 @@ public class CometDLoadClient implements MeasureConverter {
Map<String, Object> options = new HashMap<>();
options.put(ClientTransport.JSON_CONTEXT_OPTION, new JacksonJSONContextClient());
options.put(ClientTransport.MAX_NETWORK_DELAY_OPTION, Config.MAX_NETWORK_DELAY);
- options.put(ClientTransport.MAX_MESSAGE_SIZE_OPTION, -1);
+ options.put(ClientTransport.MAX_MESSAGE_SIZE_OPTION, Integer.MAX_VALUE);
// Differently from HTTP where the idle timeout is adjusted if it is a /meta/connect
// for WebSocket we need an idle timeout that is longer than the /meta/connect timeout.
options.put(WebSocketTransport.IDLE_TIMEOUT_OPTION, Config.META_CONNECT_TIMEOUT + httpClient.getIdleTimeout());
@@ -685,7 +685,7 @@ public class CometDLoadClient implements MeasureConverter {
Map<String, Object> options = new HashMap<>();
options.put(ClientTransport.JSON_CONTEXT_OPTION, new JacksonJSONContextClient());
options.put(ClientTransport.MAX_NETWORK_DELAY_OPTION, Config.MAX_NETWORK_DELAY);
- options.put(ClientTransport.MAX_MESSAGE_SIZE_OPTION, -1);
+ options.put(ClientTransport.MAX_MESSAGE_SIZE_OPTION, Integer.MAX_VALUE);
// Differently from HTTP where the idle timeout is adjusted if it is a /meta/connect
// for WebSocket we need an idle timeout that is longer than the /meta/connect timeout.
options.put(JettyWebSocketTransport.IDLE_TIMEOUT_OPTION, Config.META_CONNECT_TIMEOUT + httpClient.getIdleTimeout());
