mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-11-23 01:49:32 +08:00
A message sent as several frames reached the page as one message event per frame. libcurl flags every fragment but the last with CURLWS_CONT and repeats the message type on each, so fromFlags never saw the continuation and the receive buffer was cleared at every frame start. Accumulate data frames until the final fragment, and buffer control frames separately: RFC 6455 lets a ping or close arrive between the fragments of a data message. The size limit applies to the whole message. Fixes #4490