Skip to content

Add optional configurable request timeouts + retry support (429/5xx) to improve client reliability #159

@nkc-137

Description

@nkc-137

Hi! I noticed berserk currently relies on the underlying HTTP behavior for timeouts/retries. Transient failures like 429/502/503/504 or network hiccups can cause scripts to fail unless every user implements their own retry wrapper.

Proposal:
Add optional support for:

  • Configurable default request timeouts (connect/read)
  • Retries for transient errors (429/5xx, connection errors)

This could be implemented either via:

  1. A requests adapter (urllib3.Retry) attached to the session, or
  2. A lightweight retry wrapper in the request layer.

I’m happy to implement this if the maintainers agree with the approach.
Does this sound acceptable?

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