MINOR: sock: provide a set of generic enable/disable functions
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Sep 2020 17:00:01 +0000 (19:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 09:27:30 +0000 (11:27 +0200)
commite70c7977f2db37d6228834c98306712fb30f3fd4
treeb878ec23c68846ac9e3f4ebf817f44a6bd197c96
parent010fe151ceb872ade68916f367d877338f14046e
MINOR: sock: provide a set of generic enable/disable functions

These will be used on receivers, to enable or disable receiving on a
listener, which most of the time just consists in enabling/disabling
the file descriptor.

We have to take care of the existence of fd_updt to know if we may
or not call fd_{want,stop}_recv() since it's not permitted in very
early boot.
include/haproxy/sock.h
src/sock.c