MEDIUM: reload: pass all exportable FDs, not just listeners
authorWilly Tarreau <w@1wt.eu>
Wed, 19 Aug 2020 15:03:55 +0000 (17:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 26 Aug 2020 16:33:52 +0000 (18:33 +0200)
commitb5a1f9e495070eeb61de7523d1dad1455307d283
treec0554af1f911d0f8cd089066dd6171ed4db0691f
parentbb1caff70f0fedccda54d22ebd0e8392c2c49026
MEDIUM: reload: pass all exportable FDs, not just listeners

Now we don't limit ourselves to listeners found in proxies nor peers
anymore, we're instead scanning all known FDs for those marked with
".exported=1". Just doing so has significantly simplified the code,
and will later allow to yield while sending FDs if desired.

When it comes to retrieving a possible namespace name or interface
name, for now this is only performed on listeners since these are the
only ones carrying such info. Once this moves somewhere else, we'll
be able to also pass these info for UDP receivers for example, with
only tiny changes.
src/cli.c