forked from quic-go/quic-go
@@ -530,8 +530,8 @@ func (s *Session) queueStreamFrame(frame *frames.StreamFrame) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// UpdateReceiveFlowControlWindow updates the flow control window for a stream
|
||||
func (s *Session) UpdateReceiveFlowControlWindow(streamID protocol.StreamID, byteOffset protocol.ByteCount) error {
|
||||
// updateReceiveFlowControlWindow updates the flow control window for a stream
|
||||
func (s *Session) updateReceiveFlowControlWindow(streamID protocol.StreamID, byteOffset protocol.ByteCount) error {
|
||||
s.windowUpdateManager.SetStreamOffset(streamID, byteOffset)
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -378,7 +378,7 @@ var _ = Describe("Session", func() {
|
||||
It("sends a WindowUpdate frame", func() {
|
||||
_, err := session.NewStream(5)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
err = session.UpdateReceiveFlowControlWindow(5, 0xDECAFBAD)
|
||||
err = session.updateReceiveFlowControlWindow(5, 0xDECAFBAD)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
err = session.sendPacket()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
@@ -389,7 +389,7 @@ var _ = Describe("Session", func() {
|
||||
It("repeats a WindowUpdate frame in WindowUpdateNumRepitions packets", func() {
|
||||
_, err := session.NewStream(5)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
err = session.UpdateReceiveFlowControlWindow(5, 0xDECAFBAD)
|
||||
err = session.updateReceiveFlowControlWindow(5, 0xDECAFBAD)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
for i := uint8(0); i < protocol.WindowUpdateNumRepitions; i++ {
|
||||
err = session.sendPacket()
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
type streamHandler interface {
|
||||
queueStreamFrame(*frames.StreamFrame) error
|
||||
UpdateReceiveFlowControlWindow(streamID protocol.StreamID, byteOffset protocol.ByteCount) error
|
||||
updateReceiveFlowControlWindow(streamID protocol.StreamID, byteOffset protocol.ByteCount) error
|
||||
}
|
||||
|
||||
// A Stream assembles the data from StreamFrames and provides a super-convenient Read-Interface
|
||||
@@ -140,7 +140,7 @@ func (s *stream) ReadByte() (byte, error) {
|
||||
func (s *stream) updateReceiveFlowControlWindow() {
|
||||
n := s.receiveFlowControlWindow + s.receiveFlowControlWindowIncrement
|
||||
s.receiveFlowControlWindow = n
|
||||
s.session.UpdateReceiveFlowControlWindow(s.streamID, n)
|
||||
s.session.updateReceiveFlowControlWindow(s.streamID, n)
|
||||
}
|
||||
|
||||
func (s *stream) UpdateSendFlowControlWindow(n protocol.ByteCount) {
|
||||
|
||||
@@ -22,7 +22,7 @@ func (m *mockStreamHandler) queueStreamFrame(f *frames.StreamFrame) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *mockStreamHandler) UpdateReceiveFlowControlWindow(streamID protocol.StreamID, byteOffset protocol.ByteCount) error {
|
||||
func (m *mockStreamHandler) updateReceiveFlowControlWindow(streamID protocol.StreamID, byteOffset protocol.ByteCount) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user