Skip to content

Commit

Permalink
crossbar: enable auto fragmentation of outgoing WebSocket messages
Browse files Browse the repository at this point in the history
Larger labgrid remote infrastructure setups with a big number of
exported resources are limited by the maximum WebSocket payload size of
1M in autobahn [1].

Future patches in labgrid will increase the maximum payload size from 1M
to 10M to allow larger setups.

In oder to be able to send these payloads, enable auto fragmentation of
outgoing WebSocket messages into multiple WebSocket frames [2] in the
crossbar configuration. Use 65536 bytes which is the value set in the
ApplicationRunner [3].

[1] https://github.com/crossbario/autobahn-python/blob/359f868f9db410586cf01c071220994d8d7f165a/autobahn/asyncio/wamp.py#L223
[2] https://github.com/crossbario/crossbar/blob/master/docs/WebSocket-Options.rst
[3] https://github.com/crossbario/autobahn-python/blob/359f868f9db410586cf01c071220994d8d7f165a/autobahn/asyncio/wamp.py#L224

Signed-off-by: Bastian Krause <bst@pengutronix.de>
  • Loading branch information
Bastian-Krause committed Jan 17, 2024
1 parent c301638 commit a6d1a74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .crossbar/config-anonymous.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ workers:
directory: ../web
ws:
type: websocket
options:
auto_fragment_size: 65536
auth:
anonymous:
type: static
Expand Down

0 comments on commit a6d1a74

Please sign in to comment.