mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
Since we're using byte streamed Unix sockets for the IPC protocols, it's possible for the kernel to run out of socket buffer space with a partial message near the end of the buffer. Handle this situation in IPC::Connection by buffering the bytes of what may be a partial message, and prepending them to the incoming data next time we receive from the peer. This fixes WindowServer asserting when a peer is spamming it hard.