REORG: server: attach servers in parse_server
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 8 Mar 2021 15:35:54 +0000 (16:35 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 18 Mar 2021 14:37:05 +0000 (15:37 +0100)
commitcf58dd79e39c966129f9e688b9220c2bd7065e15
tree2ebe1e99f32db15da62843237ae74c47d7b3c44f
parent7d27efef2323140692a1a5459a5a4bd26fd8b165
REORG: server: attach servers in parse_server

Move server linked into proxy backend list outside of _srv_parse_init to
parse_server.

This is groundwork for dynamic servers support. There will be two
differences in case of a dynamic server :
- the server will be attached to the proxy list only at the very end of the
  operations when everything is ok
- the server will be directly attached to the end of the server proxy
  list
src/server.c