[Varnish] #853: Improvement of SO_RCVTIMEO / SO_SNDTIMEO test in configure.ac
Varnish
varnish-bugs at varnish-cache.org
Sun Jan 30 15:54:09 CET 2011
#853: Improvement of SO_RCVTIMEO / SO_SNDTIMEO test in configure.ac
-------------------+--------------------------------------------------------
Reporter: jdzst | Type: enhancement
Status: new | Priority: low
Milestone: | Component: build
Version: trunk | Severity: minor
Keywords: |
-------------------+--------------------------------------------------------
I have made a small improvement to SO_RCVTIMEO / SO_SNDTIMEO test in
configure.ac
Trunk version only tests if setsockopt works ok.
With my patch, it tests both setsockopt and getsockopt. The checks are
copied from "varnishd/cache_acceptor.c":
{{{
#ifdef SO_RCVTIMEO_WORKS
l = sizeof tv;
i = getsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, &l);
if (i) {
TCP_Assert(i);
return;
}
assert(l == sizeof tv);
if (memcmp(&tv, &tv_rcvtimeo, l))
need_rcvtimeo = 1;
#else
}}}
--
Ticket URL: <http://www.varnish-cache.org/trac/ticket/853>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list