Blame patches/wget2-2.0.1.local.patch

03db0d
diff -ru wget2-2.0.1.orig/libwget/net.c wget2-2.0.1/libwget/net.c
babd0e
--- wget2-2.0.1.orig/libwget/net.c	2022-12-21 13:17:32.426227872 +0100
babd0e
+++ wget2-2.0.1/libwget/net.c	2022-12-21 13:16:45.802227589 +0100
babd0e
@@ -52,6 +52,7 @@
babd0e
 # include <fcntl.h>
babd0e
 #endif
babd0e
 
babd0e
+#if 0
babd0e
 #if defined __APPLE__ && defined __MACH__ && defined CONNECT_DATA_IDEMPOTENT && defined CONNECT_RESUME_ON_READ_WRITE
babd0e
 # define TCP_FASTOPEN_OSX
babd0e
 #elif defined TCP_FASTOPEN_CONNECT // since Linux 4.11
babd0e
@@ -59,6 +60,7 @@
babd0e
 #elif defined TCP_FASTOPEN && defined MSG_FASTOPEN
babd0e
 # define TCP_FASTOPEN_LINUX
babd0e
 #endif
babd0e
+#endif
babd0e
 
babd0e
 #include <wget.h>
babd0e
 #include "private.h"
babd0e
@@ -608,9 +610,11 @@
03db0d
 	if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (void *)&on, sizeof(on)) == -1)
03db0d
 		error_printf(_("Failed to set socket option REUSEADDR\n"));
03db0d
 
03db0d
+#ifndef __midipix__
03db0d
 	on = 1;
03db0d
 	if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (void *)&on, sizeof(on)) == -1)
03db0d
 		error_printf(_("Failed to set socket option NODELAY\n"));
03db0d
+#endif
03db0d
 
03db0d
 #ifdef SO_BINDTODEVICE
03db0d
 	if (tcp->bind_interface) {