req.xid semantics?

Poul-Henning Kamp phk at phk.freebsd.dk
Sat Sep 5 10:10:41 CEST 2009


In message <20090904235827.GA6403 at digdug.corp.631h.metaweb.com>, Niall O'Higgin
s writes:

>I am looking for some sort of VCL identifier which I can use to
>disambiguate requests which occur within the same second, but in
>different threads.

That is indeed what req.xid is for.

It starts from a random value on startup, and each request gets a
unique value.


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