move GSO control message handling to the oobConn (#4056)

* move GSO control message handling to the oobConn

* disable OOB test on Windows

* improve GSO tests

* update ooConn.WritePacket comment
This commit is contained in:
Marten Seemann
2023-08-31 14:49:27 +07:00
committed by GitHub
parent d7334c16e7
commit 090e505aa9
15 changed files with 134 additions and 115 deletions

View File

@@ -8,7 +8,6 @@ import (
net "net"
reflect "reflect"
protocol "github.com/quic-go/quic-go/internal/protocol"
gomock "go.uber.org/mock/gomock"
)
@@ -78,7 +77,7 @@ func (mr *MockSendConnMockRecorder) RemoteAddr() *gomock.Call {
}
// Write mocks base method.
func (m *MockSendConn) Write(arg0 []byte, arg1 protocol.ByteCount) error {
func (m *MockSendConn) Write(arg0 []byte, arg1 uint16) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Write", arg0, arg1)
ret0, _ := ret[0].(error)