commit | 6bf641a61dd00a2e4e60790e59c8bd1696c0163c | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Oct 08 09:43:03 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Oct 12 16:58:01 2018 +0200 |
tree | 5a8c9d76395234cbb2d559f4b0f3231e6112c6e4 | |
parent | 7f0cc4964502da21ec6e402de3db946e1408d6e2 [diff] |
MINOR: h2: don't try to send data before preface h2_snd_buf() must not accept to send data if the preface was not yet received nor sent. At the moment it doesn't happen but it can with server-side H2.
diff --git a/src/mux_h2.c b/src/mux_h2.c index c01a42a..c380dc9 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c
@@ -3615,6 +3615,9 @@ size_t total = 0; size_t ret; + if (h2s->h2c->st0 < H2_CS_FRAME_H) + return 0; + if (!(h2s->flags & H2_SF_OUTGOING_DATA) && count) h2s->flags |= H2_SF_OUTGOING_DATA;