udp setsockopt correctness fixes

This commit is contained in:
JackDoan
2026-05-12 11:41:42 -05:00
parent c256f2cfbb
commit c08ed7d626
2 changed files with 72 additions and 32 deletions

View File

@@ -12,7 +12,7 @@ import (
// kernel stamps one outer codepoint per entry, so a run that straddled the
// boundary would silently lose information).
func TestPlanRunBreaksOnECNChange(t *testing.T) {
u := &StdConn{gsoSupported: true}
u := &StdConn{gsoSupported: true, maxGSOSegments: 63}
dst := netip.MustParseAddrPort("10.0.0.1:4242")
bufs := [][]byte{