shawnweeks commented on a change in pull request #75: KNOX-1828 Fix Websocket
Message Size
URL: https://github.com/apache/knox/pull/75#discussion_r266893301
##########
File path:
gateway-server/src/main/java/org/apache/knox/gateway/websockets/ProxyWebSocketAdapter.java
##########
@@ -87,6 +87,10 @@ public void onWebSocketConnect(final Session
frontEndSession) {
* plumbing takes place
*/
container = ContainerProvider.getWebSocketContainer();
+
container.setDefaultMaxTextMessageBufferSize(frontEndSession.getPolicy().getMaxTextMessageBufferSize());
Review comment:
@moresandeep Yes, the values that is being set for the servlet factory get
applied to any session for the frontEndSession. I'm just copying them to client
container. Since the container is the generic type I can't actually set the max
text message size policy but I've looked at the Jetty code and setting the
buffer also sets the message size.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services