Skip to content

Do not use Instant::now when zero reset streams are configured.#537

Merged
seanmonstar merged 1 commit intohyperium:masterfrom
boxdot:avoid-instant-now
May 5, 2021
Merged

Do not use Instant::now when zero reset streams are configured.#537
seanmonstar merged 1 commit intohyperium:masterfrom
boxdot:avoid-instant-now

Conversation

@boxdot
Copy link
Copy Markdown
Contributor

@boxdot boxdot commented May 4, 2021

This allows to use h2 on wasm platforms which lack an Instant::now implementation by setting the number of streams to 0 with: h2::client::Builder::max_concurrent_reset_streams.

Resolves #511

This allows to use `h2` on wasm platforms which lack an
`Instant::now` implementation by setting the number of streams to
0 with: `h2::client::Builder::max_concurrent_reset_streams`.
@seanmonstar seanmonstar merged commit 0457065 into hyperium:master May 5, 2021
BenxiangGe pushed a commit to BenxiangGe/h2 that referenced this pull request Jul 26, 2021
…perium#537)

This allows to use `h2` on wasm platforms which lack an
`Instant::now` implementation by setting the number of streams to
0 with: `h2::client::Builder::max_concurrent_reset_streams`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panics in browser environment

2 participants