]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stconn: Don't set SE_FL_ERROR at the end of sc_conn_send()
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Apr 2023 15:32:39 +0000 (17:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Apr 2023 15:32:44 +0000 (17:32 +0200)
When I reworked my series, this code was first removed and reinserted by
error. So let's remove it again.

src/stconn.c

index 8c72e3608d9113845e7d636946eaf21de01f5e42..359e02416437650c9cdec51487e8c44bf4cbf61b 100644 (file)
@@ -1664,8 +1664,6 @@ static int sc_conn_send(struct stconn *sc)
        if (sc_ep_test(sc, SE_FL_ERROR | SE_FL_ERR_PENDING)) {
                oc->flags |= CF_WRITE_EVENT;
                BUG_ON(sc_ep_test(sc, SE_FL_EOS|SE_FL_ERROR|SE_FL_ERR_PENDING) == (SE_FL_EOS|SE_FL_ERR_PENDING));
-               if (sc_ep_test(sc, SE_FL_ERROR))
-                       sc_ep_set(sc, SC_FL_ERROR);
                return 1;
        }