[experimental-ims] ce54514 Solaris: Test for SO_{RCV, SND}TIMEO needs NET_LIBS

Geoff Simmons geoff at varnish-cache.org
Mon Jan 9 21:52:19 CET 2012

commit ce5451435bf3ffe64d9113222777e035b3d52bda
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Fri Mar 11 17:36:54 2011 +0100

    Solaris: Test for SO_{RCV,SND}TIMEO needs NET_LIBS

diff --git a/configure.ac b/configure.ac
index cf1f566..8295fbb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -375,11 +375,20 @@ fi
 AC_CHECK_PROGS(PYTHON, [python3 python3.1 python3.2 python2.7 python2.6 python2.5 python2 python], [AC_MSG_ERROR([Python is needed to build Varnish, please install python.])])
-# Solaris defines SO_{RCV,SND}TIMEO, but does not implement them.
+# Older Solaris versions define SO_{RCV,SND}TIMEO, but do not
+# implement them.
 # Varnish will build and run without these, but connections will not
 # time out, which may leave Varnish vulnerable to denail-of-service
 # attacks which would not be possible on other platforms.
+# Newer Solaris releases with the Volo framework (Solaris 11,
+# Opensolaris starting with onnv_106) do support SO_{RCV,SND}TIMEO
+# (see PSARC 2007/587, initially committed into onnv-gate /
+# OpenSolaris 8348:4137e18bfaf0 Thu Dec 11 20:04:13 2008)
 AC_CACHE_CHECK([whether SO_RCVTIMEO works],
@@ -404,7 +413,10 @@ return 1;
 if test "$ac_cv_so_rcvtimeo_works" = yes; then
    AC_DEFINE([SO_RCVTIMEO_WORKS], [1], [Define if SO_RCVTIMEO works])
 AC_CACHE_CHECK([whether SO_SNDTIMEO works],
@@ -434,6 +446,7 @@ if test "$ac_cv_so_rcvtimeo_works" = no ||
    test "$ac_cv_so_sndtimeo_works" = no; then
 	AC_MSG_WARN([connection timeouts will not work])
 # Run-time directory

More information about the varnish-commit mailing list