ReliableStreamDecoder
Splits a TCP or TLS byte stream into messages (RFC 8323 §3.2). Feed it whatever bytes arrive; it returns every message completed so far and keeps the rest.
maxMessageSize bounds the memory one peer can make us hold; set it from the Max-Message-Size this endpoint announces in its CSM (RFC 8323 §5.3.1).