aboutsummaryrefslogtreecommitdiff
path: root/libxcb/src/xcb_util.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-12-05 17:40:56 +0000
committermarha <marha@users.sourceforge.net>2009-12-05 17:40:56 +0000
commit5c9827c199e9ecbee2602fd61fa678484c57aad1 (patch)
treef1567ef1eb76b93dec4eda2d7a67a89ea4322231 /libxcb/src/xcb_util.c
parent263c230ab177de2e870649a955ed1c9425f64f13 (diff)
parent3e1ba549192a68801232c28a9c12defb59531654 (diff)
downloadvcxsrv-5c9827c199e9ecbee2602fd61fa678484c57aad1.tar.gz
vcxsrv-5c9827c199e9ecbee2602fd61fa678484c57aad1.tar.bz2
vcxsrv-5c9827c199e9ecbee2602fd61fa678484c57aad1.zip
svn merge ^/branches/released
Diffstat (limited to 'libxcb/src/xcb_util.c')
-rw-r--r--libxcb/src/xcb_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libxcb/src/xcb_util.c b/libxcb/src/xcb_util.c
index 1ab60b9e8..db764be05 100644
--- a/libxcb/src/xcb_util.c
+++ b/libxcb/src/xcb_util.c
@@ -277,6 +277,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;