[master] 637bdca document that timeout_idle has no effect unless SO_RCVTIMEO works
Nils Goroll
nils.goroll at uplex.de
Fri May 12 14:53:05 CEST 2017
commit 637bdca0d30637115ffbf00fc326357f0eb61717
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Fri May 12 12:07:40 2017 +0200
document that timeout_idle has no effect unless SO_RCVTIMEO works
diff --git a/include/tbl/params.h b/include/tbl/params.h
index d0f689c..2dee510 100644
--- a/include/tbl/params.h
+++ b/include/tbl/params.h
@@ -1355,6 +1355,15 @@ PARAM(
)
#endif
+#if defined(XYZZY)
+ #error "Temporary macro XYZZY already defined"
+#endif
+
+#if defined(SO_RCVTIMEO_WORKS)
+ #define XYZZY 0
+#else
+ #define XYZZY NOT_IMPLEMENTED
+#endif
PARAM(
/* name */ timeout_idle,
/* typ */ timeout,
@@ -1362,7 +1371,7 @@ PARAM(
/* max */ NULL,
/* default */ "5.000",
/* units */ "seconds",
- /* flags */ 0,
+ /* flags */ XYZZY,
/* s-text */
"Idle timeout for client connections.\n"
"A connection is considered idle, until we have received the full "
@@ -1370,6 +1379,7 @@ PARAM(
/* l-text */ "",
/* func */ NULL
)
+#undef XYZZY
PARAM(
/* name */ timeout_linger,
More information about the varnish-commit
mailing list