temporarily disable sending of Blocked frames

ref #172
This commit is contained in:
Marten Seemann
2016-06-15 12:29:09 +07:00
parent c095261749
commit 37e57c6f05
4 changed files with 5 additions and 4 deletions

View File

@@ -55,6 +55,7 @@ func (p *packetPacker) AddHighPrioStreamFrame(f frames.StreamFrame) {
}
func (p *packetPacker) AddBlocked(streamID protocol.StreamID, byteOffset protocol.ByteCount) {
return
// TODO: send out connection-level BlockedFrames at the right time
// see https://github.com/lucas-clemente/quic-go/issues/113
// TODO: remove this function completely once #113 is resolved

View File

@@ -393,7 +393,7 @@ var _ = Describe("Packet packer", func() {
})
})
Context("Blocked frames", func() {
PContext("Blocked frames", func() {
It("adds a blocked frame to a packet if there is enough space", func() {
length := 100
packer.AddBlocked(5, protocol.ByteCount(length))

View File

@@ -203,7 +203,7 @@ var _ = Describe("Session", func() {
Expect(session.streamFrameQueue.Pop(1000)).To(BeNil())
})
It("removes closed streams from BlockedManager", func() {
PIt("removes closed streams from BlockedManager", func() {
session.handleStreamFrame(&frames.StreamFrame{
StreamID: 5,
Data: []byte{0xde, 0xca, 0xfb, 0xad},
@@ -444,7 +444,7 @@ var _ = Describe("Session", func() {
Expect(conn.written[0]).To(ContainSubstring(string([]byte("PRST"))))
})
Context("Blocked", func() {
PContext("Blocked", func() {
It("queues a Blocked frames", func() {
len := 500
frame := frames.StreamFrame{

View File

@@ -499,7 +499,7 @@ var _ = Describe("Stream", func() {
})
})
Context("Blocked streams", func() {
PContext("Blocked streams", func() {
It("notifies the session when a stream is flow control blocked", func() {
updated := str.flowController.UpdateSendWindow(1337)
Expect(updated).To(BeTrue())