]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: tcp/uxst/sockpair: use fd_want_send() instead of conn_xprt_want_send()
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2020 09:24:51 +0000 (10:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2020 10:21:12 +0000 (11:21 +0100)
Just like previous commit, we don't need to pass through the connection
layer anymore to enable polling during a connect(), we know the FD, so
let's simply call fd_want_send().

src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c

index bdc7ebee0f8b5106db7055fea6674b81bd6b4b3e..75cdfd49796a9d434952bcfd3355f9aad5cbaf6c 100644 (file)
@@ -332,7 +332,7 @@ static int sockpair_connect_server(struct connection *conn, int flags)
                return SF_ERR_RESOURCE;
        }
 
-       conn_xprt_want_send(conn);  /* for connect status, proxy protocol or SSL */
+       fd_want_send(fd);  /* for connect status, proxy protocol or SSL */
        return SF_ERR_NONE;  /* connection is OK */
 }
 
index 8486863a2f942d8a6c03193f01d315e7240a9dfd..6f63e3f8967697113ffa9e183ddfe0208c6e2bc4 100644 (file)
@@ -585,7 +585,7 @@ int tcp_connect_server(struct connection *conn, int flags)
                return SF_ERR_RESOURCE;
        }
 
-       conn_xprt_want_send(conn);  /* for connect status, proxy protocol or SSL */
+       fd_want_send(fd);  /* for connect status, proxy protocol or SSL */
        return SF_ERR_NONE;  /* connection is OK */
 }
 
index 61c89d54573cb3a5bcb913e1887d0f317d79eff4..2d5ac71bce45af4ac6b34bcea21e9881074b854e 100644 (file)
@@ -587,7 +587,7 @@ static int uxst_connect_server(struct connection *conn, int flags)
                return SF_ERR_RESOURCE;
        }
 
-       conn_xprt_want_send(conn);  /* for connect status, proxy protocol or SSL */
+       fd_want_send(fd);  /* for connect status, proxy protocol or SSL */
        return SF_ERR_NONE;  /* connection is OK */
 }