From 4a032ae1b285939297cbb8079f370f4a43c1f6ab Mon Sep 17 00:00:00 2001 From: Toby Date: Thu, 21 Sep 2023 16:30:52 -0700 Subject: [PATCH] fix: isGSOError --- sys_conn_helper_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys_conn_helper_linux.go b/sys_conn_helper_linux.go index 622f4e6f344..82c5fd03dd2 100644 --- a/sys_conn_helper_linux.go +++ b/sys_conn_helper_linux.go @@ -93,7 +93,7 @@ func isGSOError(err error) bool { // which is a hard requirement of UDP_SEGMENT. See: // https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/man7/udp.7?id=806eabd74910447f21005160e90957bde4db0183#n228 // https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/ipv4/udp.c?h=v6.2&id=c9c3395d5e3dcc6daee66c6908354d47bf98cb0c#n942 - return serr.Err == unix.EIO + return serr.Err == unix.EIO || serr.Err == unix.EINVAL } return false }