Skip to content

Crash in http in WASM due to hitting std::time::Instant::now() #624

@pmarks

Description

@pmarks

Describe the bug
Calling std::time::Instant::now() crashes unconditionally on WASM. retry.rs uses tokio::time::sleep() in the retry case, so you may think things are working but see intermittent crashes.

To Reproduce
Any http request that is retried in WASM should display the problem.

Expected behavior
No crash.

Additional context
See for example https://github.com/apache/arrow-rs-object-store/blob/main/src/client/retry.rs#L389

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions