From 562e0d86199e42ee95e8c68b841e6354bff9450c Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 21 Feb 2020 10:24:51 +0100 Subject: [PATCH] MINOR: tcp/uxst/sockpair: use fd_want_send() instead of conn_xprt_want_send() 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 | 2 +- src/proto_tcp.c | 2 +- src/proto_uxst.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/proto_sockpair.c b/src/proto_sockpair.c index bdc7ebee0f..75cdfd4979 100644 --- a/src/proto_sockpair.c +++ b/src/proto_sockpair.c @@ -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 */ } diff --git a/src/proto_tcp.c b/src/proto_tcp.c index 8486863a2f..6f63e3f896 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -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 */ } diff --git a/src/proto_uxst.c b/src/proto_uxst.c index 61c89d5457..2d5ac71bce 100644 --- a/src/proto_uxst.c +++ b/src/proto_uxst.c @@ -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 */ } -- 2.47.3