Hi Willy,

A small update on this development.

Le Lundi 29 Août 2011 18:01:23 Willy Tarreau a écrit :
> > > If you're interested in doing this, I'd be glad to merge it and to
> > > provide help if needed. We need a "struct list fe_idle" in the
> > > struct
> > > proxy and add/remove idle connections there.
> > 
> > Of course I'm interested. I can't promise I'll be available for it for
> > the next days but I can start it shortly.
> 
> Nice, thank you! Don't forget to take a rest, you're on holidays ;-)

First, I didn't forget to take a rest ;-)
More seriously, I've got a first version that looks to work quite well.
I couldn't raise <maxconn> keep-alive connections but <maxconn> - 1, due to 
the way haproxy pauses the listener when they are full or when the proxy is.

I still have to optimize some pathes added to resume the listeners when a 
connection goes back to the idle list. This is more true for proxies that have 
lots of listeners. I don't know such configurations but maybe you've already 
met some ;-)

During a test today, I had 2 minutes of panic due to an unexplained segfault 
but gdb quickly reminded me that I recompiled the sources with DEBUG_DEV 
enabled ! Except that, it never crashed.

-- 
Cyril Bonté

Reply via email to