Commit 1b459b50 authored by Dave Cridland's avatar Dave Cridland

Set MaxTextMessageSize to the right value

parent c77c8d1f
...@@ -69,7 +69,7 @@ public class OpenfireWebSocketServlet extends WebSocketServlet { ...@@ -69,7 +69,7 @@ public class OpenfireWebSocketServlet extends WebSocketServlet {
} }
final int messageSize = JiveGlobals.getIntProperty("xmpp.parser.buffer.size", 1048576); final int messageSize = JiveGlobals.getIntProperty("xmpp.parser.buffer.size", 1048576);
factory.getPolicy().setMaxTextMessageBufferSize(messageSize * 5); factory.getPolicy().setMaxTextMessageBufferSize(messageSize * 5);
factory.getPolicy().setMaxTextMessageSize(messageSize * 5); factory.getPolicy().setMaxTextMessageSize(messageSize);
factory.setCreator(new WebSocketCreator() { factory.setCreator(new WebSocketCreator() {
@Override @Override
public Object createWebSocket(ServletUpgradeRequest req, ServletUpgradeResponse resp) public Object createWebSocket(ServletUpgradeRequest req, ServletUpgradeResponse resp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment