[master] 98af434d4 simplify
Nils Goroll
nils.goroll at uplex.de
Wed Apr 24 09:32:08 UTC 2019
commit 98af434d445304397bcff05774e7ca956ca7ef07
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Wed Apr 24 06:54:25 2019 +0200
simplify
diff --git a/bin/varnishd/cache/cache_vrt_var.c b/bin/varnishd/cache/cache_vrt_var.c
index 8e564fa19..2b471930e 100644
--- a/bin/varnishd/cache/cache_vrt_var.c
+++ b/bin/varnishd/cache/cache_vrt_var.c
@@ -953,13 +953,7 @@ VRT_l_sess_timeout_idle(VRT_CTX, VCL_DURATION d)
VCL_DURATION
VRT_r_sess_timeout_idle(VRT_CTX)
{
- VCL_DURATION d;
-
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
CHECK_OBJ_NOTNULL(ctx->sp, SESS_MAGIC);
-
- d = ctx->sp->timeout_idle;
- if (isnan(d))
- return (cache_param->timeout_idle);
- return (d);
+ return (SESS_TMO(ctx->sp, timeout_idle));
}
More information about the varnish-commit
mailing list