]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: sock: fix sock_create_server_socket
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 22 May 2024 09:12:46 +0000 (11:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 May 2024 09:59:55 +0000 (11:59 +0200)
commit83ab1479d0d30d50d55892d8733d1703a4ab22cc
treea7359213084e334efdb6427de5c0f58dd97a8bee
parent5b9503ed33ddee84469624219159b2a2fbf2d1c3
BUG/MINOR: sock: fix sock_create_server_socket

Set stream_err value as SF_ERR_NONE, if obtained socket fd has passed all
common runtime and configuration related checks.

'.connect()' method implementation in higher protocol layers requires Stream
Error Flag as the return value. So, at the socket layer, we need to pass to
sock_create_server_socket() a variable to set this flag, because syscalls and
some socket options checks are convenient to performe at the socket layer.
src/sock.c