Skip to content
Permalink
Browse files

assert that esi requests do start on vcl0

... which is the vcl the topreq started on
  • Loading branch information...
nigoroll committed Nov 13, 2019
1 parent 78c65ef commit fd7c8bfca2c0ca7a00477618d80c2aab34b84903
Showing with 3 additions and 0 deletions.
  1. +3 −0 bin/varnishd/cache/cache_vpi.c
@@ -96,6 +96,9 @@ VPI_vcl_select(VRT_CTX, VCL_VCL vcl)
if ((IS_TOPREQ(req) && req->top->vcl0 != NULL) || req->restarts > 0)
return; // Illegal, req-FSM will fail this later.

if (! IS_TOPREQ(req))
assert(req->vcl == req->top->vcl0);

/* XXX VCL_Task* are somewhat duplicated to those in Req_Rollback called
* from FSM for VCL_RET_VCL. Keeping them here to ensure there are no
* tasks during calls to VCL_Rel / vcl_get

0 comments on commit fd7c8bf

Please sign in to comment.
You can’t perform that action at this time.