[PATCH 01/15] Start the thread pools as the last init item before the main loop.

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Nov 12 09:54:59 CET 2012


--------
In message <1352287938-7247-1-git-send-email-martin at varnish-software.com>, Mart
in Blix Grydeland writes:

>This should solve the potential race existing now, where the worker
>threads may start handling connections before a lot of the
>initialization routines has been done.

This may be right in spirit, but I think it is wrong in practice:  We
want to start the pools as early as we can so they can create their
minimum complement of threads.

The right thing to do is probably to introduce and raise a flag when
when are in business.


-- 
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-dev mailing list