Skip to content

Respond with first byte to extend timeout for early sampling requests #6929

@dapplion

Description

@dapplion

As proposed by Codex, we can reduce lag when sampling in the happy path by sending DataColumnsByRoot requests immediately as we see the block and having the sampling provider hold the request until it gets the sample.

This mechanism is already implemented in our end, both the eager sending, and the holding of requests. However, we are bound by the ReqResp timeout, which may be too short depending on how wide the sampling window is. We may artificially extend the deadline by sending the first byte of data.

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