]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: implement the max-keep-alive-queue setting
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Apr 2014 11:58:37 +0000 (13:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Apr 2014 12:14:41 +0000 (14:14 +0200)
commitc35362a94a05a1c8341e21611643d5cc82713f8e
tree31e0f04b2cd58275559f30b0aebd7d8b9e40bdde
parent6d8bac7ddc4d12c8136ef5843f5d7479390f426e
MINOR: http: implement the max-keep-alive-queue setting

Finn Arne Gangstad suggested that we should have the ability to break
keep-alive when the target server has reached its maxconn and that a
number of connections are present in the queue. After some discussion
around his proposed patch, the following solution was suggested : have
a per-proxy setting to fix a limit to the number of queued connections
on a server after which we break keep-alive. This ensures that even in
high latency networks where keep-alive is beneficial, we try to find a
different server.

This patch is partially based on his original proposal and implements
this configurable threshold.
doc/configuration.txt
include/proto/queue.h
include/types/proxy.h
src/backend.c
src/cfgparse.c
src/proxy.c