Changeset: 2efb07e174e3 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2efb07e174e3
Modified Files:
common/stream/stream.c
Branch: Jan2014
Log Message:
Turn keepalives on. We want to know when the other side dies.
diffs (12 lines):
diff --git a/common/stream/stream.c b/common/stream/stream.c
--- a/common/stream/stream.c
+++ b/common/stream/stream.c
@@ -1587,7 +1587,7 @@ socket_open(SOCKET sock, const char *nam
#endif
#if defined(SO_KEEPALIVE) && !defined(WIN32)
if (domain != PF_UNIX) { /* not on UNIX sockets */
- int opt = 0;
+ int opt = 1;
setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, (void *) &opt,
sizeof(opt));
}
#endif
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list