components/lighttpd/patches/lighttpd-nodelay.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 11 Mar 2013 10:38:09 -0700
branchs11-update
changeset 2520 ceec631e74d1
parent 331 5001b63ddc8a
child 2934 ed4c692fa932
permissions -rw-r--r--
Close of build 10.
--- src/network.c-orig	Mon Sep  7 05:46:50 2009
+++ src/network.c	Mon Sep  7 05:59:17 2009
@@ -175,6 +175,10 @@
 		log_error_write(srv, __FILE__, __LINE__, "ss", "socketsockopt failed:", strerror(errno));
 		return -1;
 	}
+        if (setsockopt(srv_socket->fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val)) < 0) {
+                log_error_write(srv, __FILE__, __LINE__, "ss", "socketsockopt failed:", strerror(errno));
+                return -1;
+        }
 
 	switch(srv_socket->addr.plain.sa_family) {
 #ifdef HAVE_IPV6