Skip to content

fix: correct sync request timeout from 30000 to 30 seconds - #178

Merged
astrinh0 merged 5 commits into
fustom:mainfrom
dpmworld:fix/sync-request-timeout
Nov 13, 2026
Merged

astrinh0 merged 5 commits into
fustom:mainfrom
dpmworld:fix/sync-request-timeout

Conversation

@dpmworld

@dpmworld dpmworld commented May 6, 2026

Copy link
Copy Markdown
Contributor

The requests.request() timeout parameter is expressed in seconds, not milliseconds. The previous value of 30000 meant ~8 hours, so a hung connection would block the caller indefinitely instead of failing fast. Align with a 30 second timeout.

dpmworld and others added 3 commits May 6, 2026 10:14
The `requests.request()` `timeout` parameter is expressed in seconds,
not milliseconds. The previous value of 30000 meant ~8 hours, so a
hung connection would block the caller indefinitely instead of failing
fast. Align with a 30 second timeout.
Comment thread ariston/ariston_api.py Resolved
dpmworld and others added 2 commits November 13, 2026 10:08
Check the timeout kwarg passed to requests.request so a regression to 30000 (milliseconds mistaken for seconds) is caught.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@dpmworld
dpmworld requested a review from astrinh0 November 13, 2026 10:59
@dpmworld

Copy link
Copy Markdown
Contributor Author

Thanks for the review. Added the regression assertion in b891fa5: the existing sync request test now checks that requests.request receives timeout=30 for both the login and the follow-up call. I verified it fails with timeout=30000 and passes with the fix. CI is green. Ready for another look.

@astrinh0
astrinh0 merged commit 0e76286 into fustom:main Nov 13, 2026
5 checks passed
@dpmworld
dpmworld deleted the fix/sync-request-timeout branch November 15, 2026 12:39
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.

2 participants