Fix `run_pending_requests` state to expect a state strictly below
SEND_HEADERS for the stream (for streaming bodies)
@@ -190,7 +190,7 @@ static void run_pending_requests(h2o_http2_conn_t *conn)
conn->num_streams._request_body_in_progress++;
stream->_conn_stream_in_progress = 1;
} else {
- if (stream->state <= H2O_HTTP2_STREAM_STATE_SEND_HEADERS) {
+ if (stream->state < H2O_HTTP2_STREAM_STATE_SEND_HEADERS) {
h2o_http2_stream_set_state(conn, stream, H2O_HTTP2_STREAM_STATE_REQ_PENDING);
h2o_http2_stream_set_state(conn, stream, H2O_HTTP2_STREAM_STATE_SEND_HEADERS);
}
