Skip to content
Commit 5ff1022f authored by Robert Lubos's avatar Robert Lubos Committed by Anas Nashif
Browse files

net: websockets: Fix send with large payload



In case the payload and header size exceeded the network MTU size,
`websocket_send_msg()` would only send a part of the payload,
effectively leading to erronous results if called again to send the
rest. Fix the issue, by calling `sendmsg()` in a loop internally in case
it did not manage to send the entire websocket message in a single call.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 1a3a7b1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment