Images 💾

Last commit ⭐

commit c15a65614f8f85241982876adb15eff8af1ad5b9
Author:     Andreas Kling <kling@serenityos.org>
AuthorDate: Tue Nov 8 19:57:44 2022 +0100
Commit:     Andreas Kling <kling@serenityos.org>
CommitDate: Wed Nov 9 02:06:33 2022 +0100

    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! :^)