summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2018-02-17 20:41:20 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2018-02-17 20:41:20 +0000
commit867ba92c40a584df54f1ff88094b08a4fab6d6fd (patch)
tree8522aa34fe06934708b25df105cb1a1dcdae4d5d
parent04836834a221f263905c2c792c02792fa9b1ac95 (diff)
downloadmidipix_build-867ba92c40a584df54f1ff88094b08a4fab6d6fd.tar.bz2
midipix_build-867ba92c40a584df54f1ff88094b08a4fab6d6fd.tar.xz
patches/lighttpd-1.4.45.local.patch:src/network.c: disable TCP_NODELAY [gs]etsockopt(2) calls.
-rw-r--r--patches/lighttpd-1.4.45.local.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/patches/lighttpd-1.4.45.local.patch b/patches/lighttpd-1.4.45.local.patch
new file mode 100644
index 00000000..d3831cc7
--- /dev/null
+++ b/patches/lighttpd-1.4.45.local.patch
@@ -0,0 +1,34 @@
+--- lighttpd-1.4.45/src/network.c.orig 2017-01-14 05:05:17.000000000 +0000
++++ lighttpd-1.4.45/src/network.c 2018-02-17 20:39:33.920000000 +0000
+@@ -53,6 +53,7 @@
+ void
+ network_accept_tcp_nagle_disable (const int fd)
+ {
++#ifndef __midipix__
+ static int noinherit_tcpnodelay = -1;
+ int opt;
+
+@@ -70,6 +71,7 @@
+
+ opt = 1;
+ (void)setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
++#endif
+ }
+
+ static handler_t network_server_handle_fdevent(server *srv, void *context, int revents) {
+@@ -445,6 +447,7 @@
+ goto error_free_socket;
+ }
+
++#ifndef __midipix__
+ if (srv_socket->addr.plain.sa_family != AF_UNIX) {
+ val = 1;
+ if (setsockopt(srv_socket->fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val)) < 0) {
+@@ -452,6 +455,7 @@
+ goto error_free_socket;
+ }
+ }
++#endif
+
+ if (0 != bind(srv_socket->fd, (struct sockaddr *) &(srv_socket->addr), addr_len)) {
+ switch(srv_socket->addr.plain.sa_family) {