From babd0e70da03cbb941d608ebb878d8e4c009da5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Wed, 21 Dec 2022 13:25:06 +0100 Subject: patches/wget2-2.0.1.local.patch: disable TCP_FASTOPEN_CONNECT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ørjan Malde --- patches/wget2-2.0.1.local.patch | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/patches/wget2-2.0.1.local.patch b/patches/wget2-2.0.1.local.patch index 2e412fd8..c4ecc7d4 100644 --- a/patches/wget2-2.0.1.local.patch +++ b/patches/wget2-2.0.1.local.patch @@ -1,7 +1,23 @@ diff -ru wget2-2.0.1.orig/libwget/net.c wget2-2.0.1/libwget/net.c ---- wget2-2.0.1.orig/libwget/net.c 2022-02-27 19:21:11.000000000 +0100 -+++ wget2-2.0.1/libwget/net.c 2022-12-21 12:51:40.841232059 +0100 -@@ -608,9 +608,11 @@ +--- wget2-2.0.1.orig/libwget/net.c 2022-12-21 13:17:32.426227872 +0100 ++++ wget2-2.0.1/libwget/net.c 2022-12-21 13:16:45.802227589 +0100 +@@ -52,6 +52,7 @@ + # include + #endif + ++#if 0 + #if defined __APPLE__ && defined __MACH__ && defined CONNECT_DATA_IDEMPOTENT && defined CONNECT_RESUME_ON_READ_WRITE + # define TCP_FASTOPEN_OSX + #elif defined TCP_FASTOPEN_CONNECT // since Linux 4.11 +@@ -59,6 +60,7 @@ + #elif defined TCP_FASTOPEN && defined MSG_FASTOPEN + # define TCP_FASTOPEN_LINUX + #endif ++#endif + + #include + #include "private.h" +@@ -608,9 +610,11 @@ if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (void *)&on, sizeof(on)) == -1) error_printf(_("Failed to set socket option REUSEADDR\n")); -- cgit v1.2.3