Skip to content

add default HTTP timeouts to requests to prevent hangs#214

Merged
adambalogh merged 2 commits intoOpenGradient:mainfrom
aydnOktay:chore/http-timeouts
Apr 1, 2026
Merged

add default HTTP timeouts to requests to prevent hangs#214
adambalogh merged 2 commits intoOpenGradient:mainfrom
aydnOktay:chore/http-timeouts

Conversation

@aydnOktay
Copy link
Copy Markdown
Contributor

This change introduces sane default HTTP timeouts (30s) to client requests that previously lacked them in opengradient.client.model_hub and opengradient.client.alpha. By ensuring requests.get/post calls specify a timeout, we eliminate the risk of indefinitely hanging operations under network degradation, improving reliability and user experience without altering public APIs or functional behavior. Existing long-running upload paths retain their explicit higher timeout. This is a minimal, backward-compatible hardening.

@adambalogh adambalogh merged commit 91b097b into OpenGradient:main Apr 1, 2026
4 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.

2 participants