freebsd-ports/net/ccxstream/files/patch-ccxclientconn.c
Mario Sergio Fujikawa Ferreira 3093438e1d o Improve error handling when processing files
o Add OPTIONS SO_KEEPALIVE and TCP_NODELAY
o Uphold hier(7) and install ccxstream under sbin/ instead of bin/
o Bump PORTREVISION
2007-05-26 11:58:32 +00:00

14 lines
406 B
C

--- 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,