]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sock: rename sock_accept_conn() to sock_accepting_conn()
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Oct 2020 07:19:43 +0000 (09:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 Oct 2020 19:47:56 +0000 (21:47 +0200)
commit7d053e4211fb4cf6def877b91d94b3796e7d34ff
tree79c0631d9a0df91c90bc87ea8a5a7fd49ebd35e3
parent65ed143841384840485441057eb33d036511733f
MINOR: sock: rename sock_accept_conn() to sock_accepting_conn()

This call was introduced by commit 5ced3e887 ("MINOR: sock: add
sock_accept_conn() to test a listening socket") but is actually quite
confusing because it makes one think the socket will accept a connection
(which is what we want to have in a new function) while it only tells
whether it's configured to accept connections. Let's call it
sock_accepting_conn() instead.

The same change was applied to sockpair which had the same issue.
include/haproxy/sock.h
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c
src/sock.c