hi,

  I was doing some testing to limit some crawler and i tried to use a stick 
table in a http backend with conn_cur to limit concurrent connections of bots:

http-request set-var(req.user_agent_hash) req.fhdr(User-Agent),sha1
stick-table type string len 30 size 5m expire 30s store 
conn_cur,http_req_rate(20s),http_req_cnt


   the table is tracking a hash of the user-agent
http-request track-sc2  var(req.user_agent_hash)


but when i look at it

0x5594842ff648: key=\x01\xF1BTA]\xCF\xE1\x94\x92\xFFahO\xBB\xAE\xABg\xBBw use=0 
exp=29846 shard=0 conn_cur=0 http_req_cnt=39 http_req_rate(20000)=39


 the conn_cur stay at 0 , the other tokens works but not conn_cur. at minimum 
it should be 1 or is it only for frontand stick tables ?



ps:i use ab to test:
 ab -n 1000 -c 2 .......
haproxy is 2.7.11-1~bpo11+1 on debian 11.9

--
best regards,
Ghislain.

Reply via email to