enable GSO on Linux, if available

This commit is contained in:
Marten Seemann
2023-04-19 10:48:32 +02:00
parent 7d8db149b6
commit 39ae200972
9 changed files with 87 additions and 10 deletions

8
sys_conn_no_gso.go Normal file
View File

@@ -0,0 +1,8 @@
//go:build darwin || freebsd
package quic
import "syscall"
func maybeSetGSO(_ syscall.RawConn) bool { return false }
func appendUDPSegmentSizeMsg(_ []byte, _ int) []byte { return nil }