Hi Rémi,

On Mon, Sep 21, 2015 at 04:26:51PM +0200, Remi Gacogne wrote:
> On 09/21/2015 02:57 PM, Willy Tarreau wrote:
> > 
> > On Mon, Sep 21, 2015 at 10:28:09AM +0000, mlist wrote:
> >> We installed "HA-Proxy version 1.6-dev5-caa6a1b 2015/09/17", as you can 
> >> see conn_cur in stick table seems wrong. Also with a single http access 
> >> test, we get inizial correct conn_cur=1 but after expired haproxy insert a 
> >> new record with same expire time with conn_cur like that below. So no more 
> >> src_conn_cur filtering for DDOS prevention can be done.
> >>
> >> # table: main_fe, type: ip, size:102400, used:1
> >> 0x1d47cfc: key=192.168.1.21 use=0 exp=26956 conn_cnt=21 conn_rate(6000)=2 
> >> conn_cur=4294967275 sess_cnt=21 http_req_cnt=21
> > 
> > Could you please share your configuration, I'm unable to reproduce the same
> > problem and I'd like to understand why. There's clearly a bug here :-/
> 
> I'm sure you already noticed that, but the value of conn_cur seems to be
> 2^32 - conn_cnt. As I don't believe much in that kind of coincidence, I
> would bet my money on conn_cur being decremented twice.

Good catch! I read it as -1 (ie a single double-decrement possibly happening
upon expire) but it ends up in 75 not 95 so no, I didn't notice it's actually
-cnt meaning it's decremented twice for each connection!

It's clear that it's decremented twice somewhere but where is the thing
to find now :-)

I just noticed that "mlist" sent me his config in a private e-mail, I'll
quickly check there.

Thanks,
Willy


Reply via email to