implement packet pacing

This commit is contained in:
Marten Seemann 2017-12-31 14:33:29 +07:00
parent c3cc35363b
commit 5ef89733ae
10 changed files with 153 additions and 50 deletions

View file

@ -164,3 +164,15 @@ func (m *MockSentPacketHandler) ShouldSendRetransmittablePacket() bool {
func (mr *MockSentPacketHandlerMockRecorder) ShouldSendRetransmittablePacket() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldSendRetransmittablePacket", reflect.TypeOf((*MockSentPacketHandler)(nil).ShouldSendRetransmittablePacket))
}
// TimeUntilSend mocks base method
func (m *MockSentPacketHandler) TimeUntilSend() time.Time {
ret := m.ctrl.Call(m, "TimeUntilSend")
ret0, _ := ret[0].(time.Time)
return ret0
}
// TimeUntilSend indicates an expected call of TimeUntilSend
func (mr *MockSentPacketHandlerMockRecorder) TimeUntilSend() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TimeUntilSend", reflect.TypeOf((*MockSentPacketHandler)(nil).TimeUntilSend))
}