Decode a fragmented handshake message straight into its packet, behind room for the Nebula header, instead of copying it there

This commit is contained in:
JackDoan committed 2026-10-15 10:42:39 -05:00
1 parent 4b295e086e
commit cbcf441d7c
8 files changed
+49 -30

No files matched your search

+2 -2
View File
@@ -470,7 +470,7 @@ func TestPQMsg2Slots(t *testing.T) {
continue
}
require.Equal(t, 11, n, "B completes on its ninth symbol")
msg, err := a.Decode()
msg, err := a.Decode(nil)
require.NoError(t, err)
got = msg
pq.dropSlot(a)
@@ -488,7 +488,7 @@ func TestPQMsg2Slots(t *testing.T) {
c, _, ready = feedMsg2(t, pq, pktsC[i])
assert.Equal(t, i == 8, ready, "symbol %d", i)
}
msg, err := c.Decode()
msg, err := c.Decode(nil)
require.NoError(t, err)
assert.Equal(t, msgC, msg)