mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-17 01:36:52 +01:00
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:
1 parent
4b295e086e
commit
cbcf441d7c
8 files changed
+49
-30
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user