forked from quic-go/quic-go
improve garbage collection of stream
This removes the Iterate method of the streamsMap, and moves the garbage collection of closed streams from the session to the streamsMap.
This commit is contained in:
@@ -37,7 +37,7 @@ var _ = Describe("Stream Framer", func() {
|
||||
stream1 = &stream{streamID: id1}
|
||||
stream2 = &stream{streamID: id2}
|
||||
|
||||
streamsMap = newStreamsMap(nil, protocol.PerspectiveServer, nil)
|
||||
streamsMap = newStreamsMap(nil, nil, protocol.PerspectiveServer, nil)
|
||||
streamsMap.putStream(stream1)
|
||||
streamsMap.putStream(stream2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user