Skip to content

Checksum validation is a slow blocking operation inside a future #3311

@jdisanti

Description

@jdisanti

The current client implementation of @httpChecksum calls into a sync Checksum trait to compute and validate a checksum for requests/responses as part of the streaming body. If a chunk is large enough, calculating this checksum can take longer than a millisecond, which can cause issues for the async runtime.

How often this happens in practice is hard to say. This issue needs some investigation. If it happens often, then the size of the chunk should be examined, and if large enough, the checksum computation should be split off into a blocking thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingclient

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions