BUG/MEDIUM: h2: Don't bogusly error if the previous stream was closed.

In h2_process_demux(), if we're demuxing multiple frames, and the previous
frame led to a stream getting closed, don't bogusly consider that an error,
and destroy the next stream, as there are valid cases where the stream could
be closed.
This commit is contained in:
Olivier Houchard 2018-11-28 13:26:11 +01:00 committed by Willy Tarreau
parent 73bce43812
commit 0024a98640

View File

@ -1920,13 +1920,6 @@ static void h2_process_demux(struct h2c *h2c)
tasklet_wakeup(h2s->recv_wait->task);
h2s->recv_wait = NULL;
}
if (h2c->st0 >= H2_CS_ERROR)
goto strm_err;
if (h2s->st >= H2_SS_ERROR) {
/* stream error : send RST_STREAM */
h2c->st0 = H2_CS_FRAME_E;
}
}
h2s = tmp_h2s;