]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: implement conn_sock_send()
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2015 22:56:52 +0000 (23:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2015 23:04:49 +0000 (00:04 +0100)
commitff3e6488123b7750eda3e9fd8cd8947f2eb155a2
tree93af471aac8c208bf9f4192822ee586c0d20c298
parentb4017d0f779ac73738e2b75fd19539466435c43d
MINOR: connection: implement conn_sock_send()

This function is an equivalent to send() which operates over a connection
instead of a file descriptor. It checks that the control layer is ready
and that it's allowed to send. If automatically enables polling if it
cannot send. It simplifies the return checks by returning zero in all
cases where it cannot send so that the caller only has to care about
negative values indicating errors.
include/proto/connection.h
src/connection.c