fix: sync same-port transport detection
This commit is contained in:
parent
840ef6237c
commit
2289a31f46
10 changed files with 851 additions and 83 deletions
|
|
@ -51,7 +51,13 @@ func (a frameBudgetTestAddr) String() string { return string(a) }
|
|||
|
||||
func newFrameBudgetTestTransport(packet []byte, c transport.Codec, budget *inboundFrameBudget) (*compatTransportConn, *frameBudgetTestConn) {
|
||||
raw := newFrameBudgetTestConn(packet)
|
||||
return &compatTransportConn{conn: raw, codec: c, budget: budget}, raw
|
||||
return &compatTransportConn{
|
||||
conn: raw,
|
||||
codec: c,
|
||||
codecKind: classifyInboundFrameCodec(c),
|
||||
budgetedCodec: unwrapInboundFrameBudgetedCodec(c),
|
||||
budget: budget,
|
||||
}, raw
|
||||
}
|
||||
|
||||
func TestInboundFrameBudgetSupportsBuiltInCodecs(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue