Skip to content

feat: make router HTTP timeout configurable - #26

Merged
TheCoder30ec4 merged 3 commits into
TheCoder30ec4:mainfrom
fatihcvs:feat/configurable-http-timeout
Sep 25, 2026
Merged

TheCoder30ec4 merged 3 commits into
TheCoder30ec4:mainfrom
fatihcvs:feat/configurable-http-timeout

Conversation

@fatihcvs

Copy link
Copy Markdown
Contributor

Add Router(timeout=60) and forward it through both Jev routing paths to request_json and ultimately urlopen. Catalog downloads use the same setting so constructing a router does not unexpectedly retain a 60-second timeout when a shorter value was requested. Cached catalogs still avoid the HTTP call.

The default remains 60 seconds. README documents seconds and distinguishes the underlying HTTP timeout from a total routing deadline; the changelog records the new option.

Closes #13.

Validation: 67 tests and 4 subtests passed, ruff check ., ruff format --check ., and git diff --check passed. Regression tests mock urlopen, exercising the real Router → Jev → HTTP path for both backends with default and fractional custom timeouts, plus a real catalog parsing path with a custom timeout. Custom-timeout cases failed before the implementation. All tests stayed offline; no API keys or paid requests were used.

@TheCoder30ec4
TheCoder30ec4 self-requested a review September 24, 2026 11:04
@TheCoder30ec4

Copy link
Copy Markdown
Owner

There are some merge conflicts reslove those

@TheCoder30ec4 TheCoder30ec4 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TheCoder30ec4
TheCoder30ec4 merged commit cc14525 into TheCoder30ec4:main Sep 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the HTTP timeout configurable

2 participants