mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
pack packets into large buffers when GSO is available
This commit is contained in:
parent
628ba87727
commit
5b5ffa942b
16 changed files with 339 additions and 186 deletions
|
@ -9,6 +9,7 @@ import (
|
|||
reflect "reflect"
|
||||
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
protocol "github.com/quic-go/quic-go/internal/protocol"
|
||||
)
|
||||
|
||||
// MockSendConn is a mock of SendConn interface.
|
||||
|
@ -77,17 +78,17 @@ func (mr *MockSendConnMockRecorder) RemoteAddr() *gomock.Call {
|
|||
}
|
||||
|
||||
// Write mocks base method.
|
||||
func (m *MockSendConn) Write(arg0 []byte) error {
|
||||
func (m *MockSendConn) Write(arg0 []byte, arg1 protocol.ByteCount) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Write", arg0)
|
||||
ret := m.ctrl.Call(m, "Write", arg0, arg1)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Write indicates an expected call of Write.
|
||||
func (mr *MockSendConnMockRecorder) Write(arg0 interface{}) *gomock.Call {
|
||||
func (mr *MockSendConnMockRecorder) Write(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockSendConn)(nil).Write), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockSendConn)(nil).Write), arg0, arg1)
|
||||
}
|
||||
|
||||
// capabilities mocks base method.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue