ladybird/Tests/LibDevTools
Sam Atkins cb88229c3f LibDevTools: Handle fragmented protocol packets
Firefox can split a DevTools protocol packet across multiple TCP
reads. The previous reader only checked that some data was available,
then tried to synchronously read the whole length-prefixed packet from
the readiness callback. Once the socket was nonblocking this could make
startup flaky when Firefox opened the inspector.

Buffer incoming bytes instead, and only dispatch messages once a full
length-prefixed JSON payload has arrived. Add a protocol test that sends
a request in two fragments through the real DevTools server.
2026-06-18 22:53:30 +02:00
..
CMakeLists.txt LibDevTools: Handle fragmented protocol packets 2026-06-18 22:53:30 +02:00
TestDevToolsProtocol.cpp LibDevTools: Handle fragmented protocol packets 2026-06-18 22:53:30 +02:00