]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: Factorize code to deal with reuse of server idle connections
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 2 Jul 2020 13:45:56 +0000 (15:45 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 15 Jul 2020 12:08:14 +0000 (14:08 +0200)
commit3d52f0f1f828acb2a74b3f13fcc3fa069106d09f
treef4ebc283935e21de79a40f5c9eb2bd3fded9a18d
parent15979619c410fd0e4638d935360c22eef8e8ce39
MINOR: server: Factorize code to deal with reuse of server idle connections

The srv_use_idle_conn() function is now responsible to update the server
counters and the connection flags when an idle connection is reused. The same
function is called when a new connection is created. This simplifies a bit the
connect_server() function.
include/haproxy/connection.h
include/haproxy/server.h
src/backend.c
src/tcpcheck.c