Hi Neil,
On Mon, Nov 04, 2013 at 01:48:42PM +, Neil - HAProxy List wrote:
Hello
I have a need to limit traffic to each url from each source address. much
like base32+src but the whole url including parameters (this came from
looking at the recent 'Haproxy rate limit per matching request' thread)
attached is patch that seems to do the job, its a copy and paste job of the
base32 functions
the url32 function seems to work too and using 2 machines to request the
same url locks me out of both if I abuse from either with the url32 key
function and only the one if I use url32_src
OK thanks, I've just applied your patch.
I think that it would possibly make sense to modify both the base32 and
url32 codes to make use of the hash subsystem and rely on the hash-type
supported by the current proxy. That way we could reduce the number of
collisions depending on what is found there. Indeed, at the moment we
only have the SDBM hash.
Willy