[PATCH] Decrement backend counters on a connection close

Dridi Boukelmoune dridi at varni.sh
Tue Jun 30 09:08:01 CEST 2015


I have been too optimistic. While this solved one of my issues, it
didn't take pipe into account.

A pipe must hold a ref to a backend until the session is actually
closed, because it will increment the relevant counters. After playing
around with the backend's refcount, trying to inc/decrement it in all
code paths, I didn't come to a satisfying result. I still have 2 test
cases (1 pipe-related) where a backend hot swap (outside of the cli
thread) fails.

This patch is no good, it doesn't solve anything.

Best Regards,
Dridi

On Mon, Jun 29, 2015 at 7:23 PM, Dridi Boukelmoune <dridi at varni.sh> wrote:
> Making progress on dynamic backends testing, I found a glitch in the
> max_connections handling, among other issues.
>
> Patch discussed with fgs and phk, not yet reviewed.
>
> Best Regards,
> Dridi



More information about the varnish-dev mailing list