From 287e58ebab79f5417e5c5cc111d20a415e544b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Wed, 2 May 2012 18:16:19 +0000 Subject: Update to 2.11.1. --- lang/mono/files/patch-mono_io-layer_sockets.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lang/mono/files/patch-mono_io-layer_sockets.c (limited to 'lang/mono/files/patch-mono_io-layer_sockets.c') diff --git a/lang/mono/files/patch-mono_io-layer_sockets.c b/lang/mono/files/patch-mono_io-layer_sockets.c new file mode 100644 index 000000000000..ba6112313325 --- /dev/null +++ b/lang/mono/files/patch-mono_io-layer_sockets.c @@ -0,0 +1,21 @@ + +$FreeBSD$ + +--- mono/io-layer/sockets.c.orig ++++ mono/io-layer/sockets.c +@@ -1290,13 +1290,13 @@ + keepalivetime /= 1000; + if (keepalivetime == 0 || rem >= 500) + keepalivetime++; +- ret = setsockopt (fd, SOL_TCP, TCP_KEEPIDLE, &keepalivetime, sizeof (uint32_t)); ++ ret = setsockopt (fd, 6, TCP_KEEPIDLE, &keepalivetime, sizeof (uint32_t)); + if (ret == 0) { + rem = keepaliveinterval % 1000; + keepaliveinterval /= 1000; + if (keepaliveinterval == 0 || rem >= 500) + keepaliveinterval++; +- ret = setsockopt (fd, SOL_TCP, TCP_KEEPINTVL, &keepaliveinterval, sizeof (uint32_t)); ++ ret = setsockopt (fd, 6, TCP_KEEPINTVL, &keepaliveinterval, sizeof (uint32_t)); + } + if (ret != 0) { + gint errnum = errno; -- cgit v1.2.3