MINOR: connection: remove sock-specific code from conn_sock_send()
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 14:26:55 +0000 (15:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 15:25:11 +0000 (16:25 +0100)
commit827fee7406feab23adf679303d3be7111eeaf568
treeca4feaa343203609f0e48fc899d61a607104300b
parent3a9e56478e358be44fb5258cad4463bed97360fe
MINOR: connection: remove sock-specific code from conn_sock_send()

The send() loop present in this function and the error handling is already
present in raw_sock_from_buf(). Let's rely on it instead and stop touching
the FD from this place. The send flag was changed to use a more agnostic
CO_SFL_*. The name was changed to "conn_ctrl_send()" to remind that it's
meant to be used to send at the lowest level.
include/haproxy/connection.h
src/connection.c
src/stream_interface.c