r1045 - trunk/varnish-cache/bin/varnishd
Poul-Henning Kamp
phk at phk.freebsd.dk
Sun Sep 17 10:48:33 CEST 2006
In message <20060917084454.152541EC36F at projects.linpro.no>, phk at projects.linpro
.no writes:
>Author: phk
>Date: 2006-09-17 10:44:53 +0200 (Sun, 17 Sep 2006)
>New Revision: 1045
>
>Modified:
> trunk/varnish-cache/bin/varnishd/cache_acceptor.c
>Log:
>Set sockopts on the listen socket and probe the accepted socket (once)
>to see which we do not need to set there because they are inherited.
>
>This could potentially save three syscalls per session.
In FreeBSD this already saves one setsockopt(SO_LINGER), and the
other two will be saved once version 1.281 of src/sys/kern/uipc_socket.c
makes it into production.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-commit
mailing list