Commit beb0c5b1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Cap the TTL (to param "shortlived") when we use the Transient storage

to avoid dropping an object on out of storage conditions.

I belive this...

Fixes	#953

Otherwise please reopen.
parent 2c74419d
......@@ -754,7 +754,8 @@ cnt_fetchbody(struct sess *sp)
*/
sp->obj = STV_NewObject(sp, TRANSIENT_STORAGE, l,
&sp->wrk->exp, nhttp);
sp->wrk->exp.ttl = params->shortlived;
if (sp->wrk->exp.ttl > params->shortlived)
sp->wrk->exp.ttl = params->shortlived;
}
if (sp->obj == NULL) {
sp->err_code = 503;
......
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