MINOR: proto: skip socket setup for duped FDs
authorWilly Tarreau <w@1wt.eu>
Mon, 27 Feb 2023 15:40:54 +0000 (16:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Apr 2023 15:41:26 +0000 (17:41 +0200)
commit09e266e6f551daa6ed3cacfb59335d221cf7c83d
tree088af186748db71e90e593a6515f2d65960a61b6
parent0e1aaf4e78ad759e452b9459ebbaaa661fe86b25
MINOR: proto: skip socket setup for duped FDs

It's not strictly necessary, but it's still better to avoid setting
up the same socket multiple times when it's being duplicated to a few
FDs. We don't change that for inherited ones however since they may
really need to be set up, so we only skip duplicated ones.
src/proto_tcp.c
src/proto_uxst.c