Commit 683004fe authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

A temporary work-around for #161


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1978 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 01b953ef
......@@ -429,6 +429,7 @@ cnt_hit(struct sess *sp)
/* Experimental. Reduce health parameter of backend towards zero
* if it has been more than a minute since it was checked. */
CHECK_OBJ_NOTNULL(sp->backend, BACKEND_MAGIC);
if (0) {
time_diff = TIM_mono() - sp->backend->last_check;
minutes = time_diff / 60;
if (minutes > sp->backend->minute_limit) {
......@@ -436,6 +437,7 @@ cnt_hit(struct sess *sp)
sp->backend->health = (int)((double)sp->backend->health / 2);
VBE_UpdateHealth(sp, NULL, 0);
}
}
VCL_hit_method(sp);
......
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