]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sock: add sock_accept_conn() to test a listening socket
authorWilly Tarreau <w@1wt.eu>
Tue, 13 Oct 2020 15:06:12 +0000 (17:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 Oct 2020 16:15:33 +0000 (18:15 +0200)
commit5ced3e8879334766613d67cacb01d9f15cfd2932
tree1197c3263e626eece52975462525465b7bff88de
parent8b6fc3d10e6319821353095d56b0c6a8c70f2713
MINOR: sock: add sock_accept_conn() to test a listening socket

At several places we need to check if a socket is still valid and still
willing to accept connections. Instead of open-coding this, each time,
let's add a new function for this.
include/haproxy/sock.h
src/sock.c