MINOR: protocol: add a ->drain() function at the connection control layer
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 15:19:12 +0000 (16:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 15:26:00 +0000 (16:26 +0100)
commit427c846cc97d9b3994541a36b91a91c4e57112fe
treeb1776d93b905e223b65af3a040de9183911191e2
parent586f71b43f05a36444367a9e7aca560b83307100
MINOR: protocol: add a ->drain() function at the connection control layer

This is what we need to drain pending incoming data from an connection.
The code was taken from conn_sock_drain() without the connection-specific
stuff. It still takes a connection for now for API simplicity.
include/haproxy/protocol-t.h
include/haproxy/sock.h
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c
src/sock.c