commit | ff3e6488123b7750eda3e9fd8cd8947f2eb155a2 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Mar 12 23:56:52 2015 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Mar 13 00:04:49 2015 +0100 |
tree | 93af471aac8c208bf9f4192822ee586c0d20c298 | |
parent | b4017d0f779ac73738e2b75fd19539466435c43d [diff] |
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.