Skip to content

Make the HTTP timeout configurable #13

Description

@TheCoder30ec4

Motivation

request_json uses a fixed 60 s timeout. Latency-sensitive agents may want 5 to 10 s and then fall back, while batch jobs may want more.

Proposal

Add Router(..., timeout=60), stored on the router and passed to jev.choose_via_* and on to request_json(timeout=...).

Done when

  • The timeout reaches urlopen (assert with a mock)
  • Documented in the README API table

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: httpNetwork calls, errors, timeouts and retriesenhancementNew feature or requestgood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions