1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 07:44:59 +00:00
serenity/Userland/Libraries/LibWebSocket
Andreas Kling c15a65614f LibWebSocket: Buffer incoming frame data until whole frame is available
Frames with large payloads may arrive in multiple chunks, so it's not
safe to assume that the whole frame is available for reading just
because we got a first "ready to read" notification.

This patch solves this in a very naive way by simply buffering incoming
frame data and trying to reparse a frame every time new data arrives.
This is definitely inefficient, but it works as a start.

With this, it's now possible to log in to Discord in Ladybird! :^)
2022-11-09 02:06:33 +01:00
..
Impl LibWebSocket: Remove unused WebSocketImpl::can_read() 2022-11-09 02:06:33 +01:00
CMakeLists.txt LibWebSocket: Make WebSocketImpl an abstract class 2022-11-09 02:06:33 +01:00
ConnectionInfo.cpp AK+Everywhere: Replace "protocol" with "scheme" url helpers 2022-09-29 09:39:04 +01:00
ConnectionInfo.h LibCore+Userland: Remove Core::TCPSocket :^) 2022-02-06 17:28:17 +00:00
Message.h Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
WebSocket.cpp LibWebSocket: Buffer incoming frame data until whole frame is available 2022-11-09 02:06:33 +01:00
WebSocket.h LibWebSocket: Buffer incoming frame data until whole frame is available 2022-11-09 02:06:33 +01:00