diff options
author | Jeff Epler <jepler@gmail.com> | 2025-08-04 10:05:28 -0500 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-10-05 15:41:54 +1100 |
commit | b94162b5dfe19ae1083a0bdf0611e07262fe8fe8 (patch) | |
tree | 438422297ee322155ee7363bcb8f46eb1afc30f7 /py/objstr.c | |
parent | d921dd6d61be29866e62b923d3e37859829188bd (diff) |
extmod/modwebsocket: Enable split frames and test them.
This fixes several assertion errors that were found in fuzz testing, for
unimplemented portions of the websocket spec. The assertions were either
turned into Python exceptions, or the missing functionality was
implemented.
Split frames are now enabled and work, enabling reception of frames up to
64kB (assuming they are encoded with a 16-bit size field).
Frames with a 64-bit size fields remain unsupported but no longer result in
an assertion error. Instead, Initial reception of such a frame will result
in OSError(EIO) and subsequent operations on the same websocket will fail
because framing has been lost.
Transmitting frames larger than 64kB is unsupported. Attempting to
transmit such a frame will result in OSError(ENOBUFS). Subsequent
operations on the websocket are possible.
Signed-off-by: Jeff Epler <jepler@gmail.com>
Diffstat (limited to 'py/objstr.c')
0 files changed, 0 insertions, 0 deletions