activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bálint Balázs <bluq...@gmail.com>
Subject Setting maxFrameSize for Websocket doesn't work
Date Fri, 03 May 2019 08:45:25 GMT
Hi All,

I'm using the Websocket connector together with the MQTT connector with the
following settings:

<transportConnector name="mqtt" uri="mqtt://
0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600
"/>
<transportConnector name="ws" uri="ws://
0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600
"/>

When trying to send larger messages (~ 1MB) from a Websocket client, the
client disconnects. I can send the same message from an MQTT client. These
messages are successfully received by the Websocket client. I get the
following error in the ActiveMQ log:

org.eclipse.jetty.websocket.api.MessageTooLargeException: Binary message
size [130058] exceeds maximum size [65536]

What is the correct way to configure the max size for the Websocket
connections?
I'm running ActiveMQ 5.15.6, on Windows 10 (64 bit)

Thanks a lot,
Balint

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message