You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason is that calling receiveBytes() with MSG_PEEK does not look behind the current TLS record. If the current record contains an incomplete WebSocket header, peekHeader() will not be able to ever return a full header.
The solution is to not use MSG_PEEK, and instead do a regular receiveBytes() and keep the bytes in an internal buffer.
The text was updated successfully, but these errors were encountered:
The reason is that calling
receiveBytes()
withMSG_PEEK
does not look behind the current TLS record. If the current record contains an incomplete WebSocket header,peekHeader()
will not be able to ever return a full header.The solution is to not use
MSG_PEEK
, and instead do a regularreceiveBytes()
and keep the bytes in an internal buffer.The text was updated successfully, but these errors were encountered: