delete flow controllers for closed streams

fixes #177
This commit is contained in:
Lucas Clemente
2016-07-28 16:45:55 +02:00
parent 5a82b35ca8
commit 3a88a8cffa
6 changed files with 26 additions and 1 deletions

View File

@@ -33,6 +33,14 @@ var _ = Describe("Flow Control Manager", func() {
})
})
It("removes streams", func() {
fcm.NewStream(5, true)
Expect(fcm.streamFlowController).To(HaveKey(protocol.StreamID(5)))
fcm.RemoveStream(5)
Expect(fcm.streamFlowController).ToNot(HaveKey(protocol.StreamID(5)))
Expect(fcm.contributesToConnectionFlowControl).ToNot(HaveKey(protocol.StreamID(5)))
})
Context("receiving data", func() {
BeforeEach(func() {
fcm.NewStream(1, false)