MINOR: backend: only allow reuse for reverse server
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 18 Aug 2023 14:02:35 +0000 (16:02 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Aug 2023 12:49:03 +0000 (14:49 +0200)
commit6e428dfaf2706a3900acb2e8f77c0e4dffff1bff
tree28cf46bb02f50af20185073f0e768f45744018af
parente6223a318833f2f58303f36839e592f5aede5d17
MINOR: backend: only allow reuse for reverse server

A reverse server relies solely on its pool of idle connection to
transfer requests which will be populated through a new tcp-request rule
'attach-srv'.

Several changes are required on connect_server() to implement this.
First, reuse mode is forced to always for this type of server. Then, if
no idle connection is found, the request will be aborted. This results
with a 503 HTTP error code, similarly to when no server is available.
include/haproxy/server.h
src/backend.c