]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h2: Remove useless test on ES flag in h2_frt_transfer_data()
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Mar 2019 13:12:11 +0000 (14:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Mar 2019 17:06:17 +0000 (18:06 +0100)
Same test is already performed in the caller function, h2c_frt_handle_data().

This patch should be backported to 1.9.

src/mux_h2.c

index d91cd08b3a06b2fddf9af78b504d808595614f04..c31bf8d751fd549958cd002840c81d4a04884333 100644 (file)
@@ -3765,12 +3765,6 @@ try_again:
        h2c->rcvd_s += h2c->dpl;
        h2c->dpl = 0;
        h2c->st0 = H2_CS_FRAME_A; // send the corresponding window update
-
-       if (h2c->dff & H2_F_DATA_END_STREAM) {
-               h2s->flags |= H2_SF_ES_RCVD;
-               if (h2s->cs)
-                       h2s->cs->flags |= CS_FL_REOS;
-       }
        if (htx)
                htx_to_buf(htx, csbuf);
        return 1;