http3: use the stream context to detect when the send side is closed (#4489)

This commit is contained in:
Marten Seemann
2024-05-05 10:15:35 +08:00
committed by GitHub
parent c7b58b568f
commit bb6f066aa5
7 changed files with 111 additions and 33 deletions

View File

@@ -494,6 +494,7 @@ var _ = Describe("Client", func() {
return len(b), nil
}) // SETTINGS frame
str = mockquic.NewMockStream(mockCtrl)
str.EXPECT().Context().Return(context.Background()).AnyTimes()
str.EXPECT().StreamID().AnyTimes()
conn = mockquic.NewMockEarlyConnection(mockCtrl)
conn.EXPECT().OpenUniStream().Return(controlStr, nil)