mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
MINOR: connection: don't check for CO_FL_SOCK_WR_SH too early in handshakes
Just like with CO_FL_SOCK_RD_SH, we don't need to check for this flag too early because conn_sock_send() already does it. No error was lost so it was harmless, it was only useless code.
This commit is contained in:
parent
d838fb840c
commit
49139cb914
2 changed files with 0 additions and 8 deletions
|
|
@ -1003,10 +1003,6 @@ int conn_send_socks4_proxy_request(struct connection *conn)
|
|||
{
|
||||
struct socks4_request req_line;
|
||||
|
||||
/* we might have been called just after an asynchronous shutw */
|
||||
if (conn->flags & CO_FL_SOCK_WR_SH)
|
||||
goto out_error;
|
||||
|
||||
if (!conn_ctrl_ready(conn))
|
||||
goto out_error;
|
||||
|
||||
|
|
|
|||
|
|
@ -329,10 +329,6 @@ struct appctx *si_register_handler(struct stream_interface *si, struct applet *a
|
|||
*/
|
||||
int conn_si_send_proxy(struct connection *conn, unsigned int flag)
|
||||
{
|
||||
/* we might have been called just after an asynchronous shutw */
|
||||
if (conn->flags & CO_FL_SOCK_WR_SH)
|
||||
goto out_error;
|
||||
|
||||
if (!conn_ctrl_ready(conn))
|
||||
goto out_error;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue