Files
OrcaSlicer/tests/slic3rutils
Lam Wei Lun 3c646f305c Fix Orca MQTT: reassemble packets across WebSocket messages
OrcaSonar's /mqtt WebSocket proxy writes each ~8 KiB TCP read as its own
WebSocket binary message, so an MQTT packet larger than one read (e.g. a
files.list reply) spans several messages, and several packets can arrive in
one. OrcaMqttConnection assumed exactly one packet per message, so packets
that spanned messages were dropped and the request timed out ("Load failed").

Keep a per-connection byte buffer and extract complete packets by their
remaining-length header, dispatching each. A malformed header (or a declared
size past a 16 MiB cap) drops the connection so the worker reconnects rather
than buffering forever.
2026-10-07 18:35:12 +08:00
..
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00
2026-10-06 13:08:46 +08:00