queue stream window updates directly from stream.Read

By queueing receive window updates directly from stream.Read, it is no
longer necessary to ask every stream for window updates when sending a
packet.
This commit is contained in:
Marten Seemann 2017-12-19 13:46:52 +07:00
parent 74c00a8dd8
commit c270de3538
8 changed files with 187 additions and 42 deletions

View file

@ -5,6 +5,7 @@ package quic
import (
gomock "github.com/golang/mock/gomock"
protocol "github.com/lucas-clemente/quic-go/internal/protocol"
wire "github.com/lucas-clemente/quic-go/internal/wire"
reflect "reflect"
)
@ -32,6 +33,16 @@ func (_m *MockStreamSender) EXPECT() *MockStreamSenderMockRecorder {
return _m.recorder
}
// onHasWindowUpdate mocks base method
func (_m *MockStreamSender) onHasWindowUpdate(_param0 protocol.StreamID, _param1 protocol.ByteCount) {
_m.ctrl.Call(_m, "onHasWindowUpdate", _param0, _param1)
}
// onHasWindowUpdate indicates an expected call of onHasWindowUpdate
func (_mr *MockStreamSenderMockRecorder) onHasWindowUpdate(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "onHasWindowUpdate", reflect.TypeOf((*MockStreamSender)(nil).onHasWindowUpdate), arg0, arg1)
}
// queueControlFrame mocks base method
func (_m *MockStreamSender) queueControlFrame(_param0 wire.Frame) {
_m.ctrl.Call(_m, "queueControlFrame", _param0)