]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: h3: remove duplicated FIN flag position
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 6 Dec 2021 15:18:43 +0000 (16:18 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 7 Dec 2021 14:37:53 +0000 (15:37 +0100)
The FIN flag is already set in h3_snd_buf on HTX EOM reception. The same
action in h3_resp_headers_send is duplicated and thus now removed.

src/h3.c

index 14c56c697e20be3586a374c3ca40eae10e01e46f..6414c598e02bb2b3ed44bac31080d1d3d2707d74 100644 (file)
--- a/src/h3.c
+++ b/src/h3.c
@@ -484,9 +484,6 @@ static int h3_resp_headers_send(struct qcs *qcs, struct htx *htx)
                        break;
        }
 
-       if ((htx->flags & HTX_FL_EOM) && htx_is_empty(htx) && status >= 200)
-               qcs->flags |= QC_SF_FIN_STREAM;
-
        return ret;
 
  err: