Skip to content

Implement Retrieval Timeout #901

@lidel

Description

@lidel

Service Worker should have a configurable Retrieval Timeout, set to 30s by default to match current UX of Kubo, Rainbow, ipfs.io / dweb.link:

Gateway.RetrievalTimeout at kubo/docs/config.md:

Timeout behavior:

  • Time to first byte: Returns 504 Gateway Timeout if the gateway cannot start writing within this duration (e.g., stuck searching for providers)
  • Time between writes: After first byte [block], timeout resets with each write [block]. Response terminates if no new data [block] can be written within this duration

Prior art GO code:

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High: Likely tackled by core team if no one steps upeffort/daysEstimated to take multiple days, but less than a weekexp/expertHaving worked on the specific codebase is important

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions