r2232 - trunk/varnish-cache/bin/varnishd

Dag-Erling Smørgrav des at linpro.no
Fri Nov 9 11:51:57 CET 2007


"Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
> In message <ujr4pfvn1dt.fsf at false.linpro.no>, =?iso-8859-1?Q?Dag-Erling_Sm=F8rg
> rav?= writes:
> > - kevent changes can be buffered safely if we flush the buffer at the
> >   end of the loop in vca_kqueue_main().  Since we process (at most)
> >   NKEV kevents at a time, we will never have more than NKEV kevent
> >   changes to apply at that point, so it's safe to use a static
> >   buffer.
> That's not true.  We can receive multiple sessions in one read from
> the pipe.

Ah, right.  So we flush the buffer when it's full, plus at the end of
the loop.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no



More information about the varnish-commit mailing list