summaryrefslogtreecommitdiff
path: root/net/ccxstream/files/patch-ccxclientconn.c
blob: 11e1ccb1f42305c867cfac2a5df207293409b295 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ccxclientconn.c.orig	Mon Mar 17 11:29:15 2003
+++ ccxclientconn.c	Tue May 15 14:58:52 2007
@@ -51,6 +51,11 @@
   i = 1;
   setsockopt(sock, IPPROTO_TCP,TCP_NODELAY, &i, sizeof (i));
 #endif /* TCP_NODELAY */
+
+#ifdef SO_KEEPALIVE
+  i = 1;
+  setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, &i, sizeof (i));
+#endif /* SO_KEEPALIVE */
 }
 
 CcXstreamClientError cc_xstream_client_connect(const char *host,