Skip to content

KVStoreEntry for retrieving the body doesn't appear to be an async operation #1171

Open
0 of 1 issue completed
@vcarvajal-sigsci

Description

@vcarvajal-sigsci

Calling arrayBuffer(), json(), or text() on KVStoreEntry eventually reaches the function read_from_handle_all inside of runtime/fastly/builtins/fetch/request-response.cpp. This function will read the entire body of the object into memory before returning, and there is no suspension point while it waits for chunks of the body (in other words it doesn’t return control to the event loop until after all the chunks have been read).

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions