rpms/libxcb/F-10 libxcb-1.2-disable-nagle.patch, NONE, 1.1 libxcb.spec, 1.13, 1.14

Warren Togami 砥上勇 wtogami at fedoraproject.org
Wed Jun 24 16:43:20 UTC 2009


Author: wtogami

Update of /cvs/pkgs/rpms/libxcb/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv636

Modified Files:
	libxcb.spec 
Added Files:
	libxcb-1.2-disable-nagle.patch 
Log Message:
- disable Nagle's algorithm for X TCP traffic as upstream decided this was a bad idea.
  This should be a significant performance boost.


libxcb-1.2-disable-nagle.patch:

--- NEW FILE libxcb-1.2-disable-nagle.patch ---
diff -urN libxcb-1.2.orig/src/xcb_util.c libxcb-1.2/src/xcb_util.c
--- libxcb-1.2.orig/src/xcb_util.c	2008-12-11 05:15:34.000000000 -0500
+++ libxcb-1.2/src/xcb_util.c	2009-06-24 11:57:38.592581280 -0400
@@ -30,6 +30,7 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <netinet/in.h>
+#include <netinet/tcp.h>
 #ifdef DNETCONN
 #include <netdnet/dnetdb.h>
 #include <netdnet/dn.h>
@@ -250,6 +251,9 @@
     {
         fd = socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);
         if(fd >= 0) {
+            int on = 1;
+            setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
+
             if (connect(fd, addr->ai_addr, addr->ai_addrlen) >= 0)
                 break;
             close(fd);


Index: libxcb.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libxcb/F-10/libxcb.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- libxcb.spec	21 Apr 2009 18:21:00 -0000	1.13
+++ libxcb.spec	24 Jun 2009 16:43:18 -0000	1.14
@@ -18,6 +18,7 @@ Patch0:         libxcb-1.1-no-pthread-st
 Patch2:		libxcb-1.1-sloppy-lock.patch
 Patch3:		libxcb-1.1.91-git.patch
 Patch4:         libxcb-1.1.91-xidgen.patch
+Patch5:         libxcb-1.2-disable-nagle.patch
 
 BuildRequires:  autoconf automake libtool pkgconfig
 BuildRequires:  doxygen
@@ -57,6 +58,7 @@ The %{name}-doc package contains documen
 %patch2 -p1 -b .sloppier
 %patch3 -p1 -b .git
 %patch4 -p1 -b .xidgen
+%patch5 -p1 -b .disable-nagle
 
 %build
 autoreconf -v --install
@@ -92,6 +94,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/doc/%{name}-%{version}
 
 %changelog
+* Wed Jun 24 2009 Warren Togami <wtogami at redhat.com> 1.1.91-7
+- disable Nagle's algorithm for X TCP traffic as upstream decided this was a bad idea.
+  This should be a significant performance boost.
+
 * Tue Apr 21 2009 Christopher Aillon <caillon at redhat.com> 1.1.91-6
 - Add upstream fix for XID generation
 




More information about the fedora-extras-commits mailing list