From: Willy Tarreau Date: Fri, 21 Feb 2020 09:21:46 +0000 (+0100) Subject: MINOR: raw_sock: directly call fd_stop_send() and not conn_xprt_stop_send() X-Git-Tag: v2.2-dev3~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3110eb769b5eb43e01c3d471780a1c5d6a5937f5;p=thirdparty%2Fhaproxy.git MINOR: raw_sock: directly call fd_stop_send() and not conn_xprt_stop_send() Now that we know that the connection layer is transparent for polling changes, we have no reason for hiding behind conn_xprt_stop_send() and can safely call fd_stop_send() on the FD once the buffer is empty. --- diff --git a/src/raw_sock.c b/src/raw_sock.c index 338491c1b1..06d5f4d9ea 100644 --- a/src/raw_sock.c +++ b/src/raw_sock.c @@ -382,7 +382,7 @@ static size_t raw_sock_from_buf(struct connection *conn, void *xprt_ctx, const s if (ret < try) break; if (!count) - conn_xprt_stop_send(conn); + fd_stop_send(conn->handle.fd); } else if (ret == 0 || errno == EAGAIN || errno == ENOTCONN || errno == EINPROGRESS) { /* nothing written, we need to poll for write first */