[Varnish] #1600: PRIV_{REQ, SESS} can't be used in multiple VMODs loaded at the same time.

Varnish varnish-bugs at varnish-cache.org
Wed Oct 1 15:14:43 CEST 2014


#1600: PRIV_{REQ,SESS} can't be used in multiple VMODs loaded at the same time.
----------------------+----------------------
 Reporter:  daghf     |       Owner:
     Type:  defect    |      Status:  new
 Priority:  normal    |   Milestone:
Component:  varnishd  |     Version:  unknown
 Severity:  normal    |  Resolution:
 Keywords:            |
----------------------+----------------------

Comment (by daghf):

 The attached test case is kind of heavy handed in that it actually adds
 another VMOD to the varnish source tree. We can probably drop this, and
 postpone a test case until another vmod that actually uses PRIV_REQ
 (vmod_cookie?) is contributed.

 The attached fix adds another parameter to the VRT_priv_{req,sess}
 functions for discerning one VMOD's priv obj from another's. VCC will pass
 a pointer to the VMOD's VGC_vmod_<name> object, which acts as a unique id
 for that VMOD.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1600#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list