implement sender side behavior for RESET_STREAM_AT (#5242)

* improve existing send stream test

* implement sender side behavior for RESET_STREAM_AT

* refactor send stream cancelation and shutdown error handling

* correctly deal with 0-RTT corner case
This commit is contained in:
Marten Seemann
2025-06-28 11:44:47 +08:00
committed by GitHub
parent b2f24318af
commit a2926a3603
10 changed files with 864 additions and 138 deletions

View File

@@ -54,6 +54,11 @@ func testStreamsMapOutgoingOpenAndDelete(t *testing.T, perspective protocol.Pers
require.Equal(t, protocol.ByteCount(1000), str1.sendWindow)
require.Equal(t, protocol.ByteCount(1000), str2.sendWindow)
// enable reset stream at
m.EnableResetStreamAt()
require.True(t, str1.supportsResetStreamAt)
require.True(t, str2.supportsResetStreamAt)
err = m.DeleteStream(firstStream + 1337*4)
require.Error(t, err)
require.ErrorIs(t, err, &qerr.TransportError{ErrorCode: qerr.StreamStateError})