Skip to content

Commit 629dd98

Browse files
Update src/AsyncWebSocket.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3a9a39d commit 629dd98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncWebSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ void AsyncWebSocketClient::_onData(void *pbuf, size_t plen) {
539539
}
540540

541541
if (_pinfo.masked > 0 && _pinfo.masked < 5) {
542-
//mask not fully read yet
542+
// Handle fragmented mask data - Safari may split the 4-byte mask across multiple packets
543543
while (_pinfo.masked < 5) {
544544
if (plen == 0) {
545545
//wait for more data

0 commit comments

Comments
 (0)