CultLib/packages/cultmesh-ts/test
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 0eb7434ab1 cultmesh-ts: the RUDP document server fragments its replies and refuses unservable puts
The server reassembled fragmented puts but sent every reply as one UDP
datagram, ignoring its own maxFragmentBytes and maxPayloadBytes, and a
datagram that failed to leave vanished. An 80 KB note put in 1 KiB
fragments was admitted and its snapshot never arrived, with no error.

Replies now fragment by maxFragmentBytes (default
CULTMESH_RUDP_DOCUMENT_SERVER_DEFAULT_MAX_FRAGMENT_BYTES, 1200), and
maxPayloadBytes bounds both inbound frames and replies. A put whose
served-alone reply (sized by the registry, under the shortest message id,
with the send path's encoder) would exceed maxPayloadBytes, 65535
fragments or maxPendingReliablePackets is refused before onDocumentPutRaw:
onError receives a CultMeshRudpUnservableDocumentError naming the sizes,
and the peer a cultnet.error.v0. Every datagram send reports failure to
onError, as does a snapshot reply that cannot be sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 14:09:50 +02:00
..
fixtures Add a provenance note for the QUIC test fixtures 2026-09-23 14:46:25 +02:00
interop Extend the Cut 5 interop lane: a late C# native connector gets the TS retained frame 2026-09-23 18:32:39 +02:00
support Add the release() use-after-free regression test (fix 2) 2026-09-23 16:14:42 +02:00
cultmesh.test.ts cultmesh-ts: the RUDP document server fragments its replies and refuses unservable puts 2026-09-30 14:09:50 +02:00
provider-rudp-transport.test.ts Ack Cut 1d batch 2 (TypeScript): an Ack does not retire a Connect awaiting its Accept; the fresh attempt jumps by the receive window less one 2026-09-30 09:53:06 +02:00
provider-session-wire.test.ts Fence provider RUDP connection generations 2026-07-19 00:50:20 +01:00
provider-session.test.ts Add durable TypeScript provider sessions 2026-07-14 23:13:13 +01:00
realtime-quic-consumer.test.ts Bound P8's race so a regression fails by assertion, not a file-wide hang 2026-09-23 19:32:43 +02:00
realtime-quic-native.test.ts Merge the koffi allocation-leak fix into the retention line 2026-09-23 20:06:29 +02:00
realtime-quic-provider.test.ts Fix P17 to actually kill its mutant: check refCount, not connectionCount 2026-09-23 21:43:22 +02:00
realtime-quic-release-uaf.test.ts Add the release() use-after-free regression test (fix 2) 2026-09-23 16:14:42 +02:00
realtime-quic-session-manager.test.ts Add tests for dial cancellation, F5abort and F5loser 2026-09-23 15:53:34 +02:00
realtime-wire.test.ts Stop the realtime decoder handing back a view of its own frame 2026-09-16 20:20:16 +02:00