]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: raw_sock: directly call fd_stop_send() and not conn_xprt_stop_send()
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2020 09:21:46 +0000 (10:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2020 10:21:12 +0000 (11:21 +0100)
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.

src/raw_sock.c

index 338491c1b1edb9ffd16d4fb4e2a25c866a8ff5ca..06d5f4d9ea3f06b2692dc3ec4f11963cb0125444 100644 (file)
@@ -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 */