Commit 9bf8e871 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland Committed by Dridi Boukelmoune

Log using SLT_Notice on condfetch streaming delay

Log a notice message when delaying a conditional fetch and the stale
template object is still streaming.
parent 4c5aba28
......@@ -702,6 +702,8 @@ vbf_stp_condfetch(struct worker *wrk, struct busyobj *bo)
* single slow body fetch. Second it makes sure that all
* the object attributes are complete when we copy them
* (this would be an issue for ie OA_GZIPBITS). */
VSLb(bo->vsl, SLT_Notice,
"[core] Conditional fetch wait for streaming object");
ObjWaitState(bo->stale_oc, BOS_FINISHED);
stale_state = stale_boc->state;
HSH_DerefBoc(bo->wrk, bo->stale_oc);
......
......@@ -112,6 +112,15 @@ for core Varnish generated messages, or with [<VMOD name>] for VMOD
generated messages. The [core] messages are described in detail below, see
the individual VMOD documentation for messages from VMODs.
[core] Conditional fetch wait for streaming object
The backend answered 304 Not Modified on a conditional fetch using
an object that has not yet been fully fetched as the stale
template object. This can only happen when the TTL of the object
is less than the time it takes to fetch it. The fetch is halted
until the stale object is fully fetched, upon which the new object
is created as normal. While waiting, any grace time on the stale
object will be in effect.
HISTORY
=======
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment