rpms/libxcb/devel libxcb-1.4-keepalive.patch, NONE, 1.1 libxcb.spec, 1.29, 1.30
Adam Jackson
ajax at fedoraproject.org
Wed Dec 2 19:53:53 UTC 2009
Author: ajax
Update of /cvs/pkgs/rpms/libxcb/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7281
Modified Files:
libxcb.spec
Added Files:
libxcb-1.4-keepalive.patch
Log Message:
* Wed Dec 02 2009 Adam Jackson <ajax at redhat.com> 1.4-2
- libxcb-1.4-keepalive.patch: setsockopt(SO_KEEPALIVE) for TCP (#476415)
libxcb-1.4-keepalive.patch:
xcb_util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE libxcb-1.4-keepalive.patch ---
>From 1cf2a87def76f4646fe05e282b45605d572f2513 Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax at redhat.com>
Date: Wed, 2 Dec 2009 14:31:56 -0500
Subject: [PATCH] setsockopt(SO_KEEPALIVE) on TCP display connections.
This matches xtrans behaviour in SocketINETConnect, and makes it so apps
don't hang forever if their display dies.
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
src/xcb_util.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/xcb_util.c b/src/xcb_util.c
index 55aadb7..c3cbfa6 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -260,6 +260,7 @@ static int _xcb_open_tcp(char *host, char *protocol, const unsigned short port)
if(fd >= 0) {
int on = 1;
setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
+ setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on));
if (connect(fd, addr->ai_addr, addr->ai_addrlen) >= 0)
break;
--
1.6.5.2
Index: libxcb.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libxcb/devel/libxcb.spec,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -p -r1.29 -r1.30
--- libxcb.spec 27 Aug 2009 18:14:21 -0000 1.29
+++ libxcb.spec 2 Dec 2009 19:53:53 -0000 1.30
@@ -7,7 +7,7 @@
Name: libxcb
Version: 1.4
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A C binding to the X11 protocol
Group: System Environment/Libraries
@@ -22,6 +22,8 @@ BuildRoot: %{_tmppath}/%{name}-%{ve
Source1: pthread-stubs.pc.in
Source2: http://xcb.freedesktop.org/dist/xpyb-%{xpyb_version}.tar.bz2
+Patch1: libxcb-1.4-keepalive.patch
+
BuildRequires: autoconf automake libtool pkgconfig
BuildRequires: doxygen
BuildRequires: graphviz
@@ -70,6 +72,7 @@ Python bindings for %{name}.
%prep
%setup -q -b2
+%patch1 -p1 -b .keepalive
%if !0%{?bootstrap}
pushd ../xpyb-%{xpyb_version}
@@ -155,6 +158,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Wed Dec 02 2009 Adam Jackson <ajax at redhat.com> 1.4-2
+- libxcb-1.4-keepalive.patch: setsockopt(SO_KEEPALIVE) for TCP (#476415)
+
* Thu Aug 27 2009 Adam Jackson <ajax at redhat.com> 1.4-1
- libxcb 1.4 (#518597)
More information about the fedora-extras-commits
mailing list