Skip to content

Add timeout to IA availability requests to avoid localhost hanging#11247

Merged
cdrini merged 2 commits intomasterfrom
fix/availability-local-env
Nov 10, 2025
Merged

Add timeout to IA availability requests to avoid localhost hanging#11247
cdrini merged 2 commits intomasterfrom
fix/availability-local-env

Conversation

@RayBB
Copy link
Copy Markdown
Collaborator

@RayBB RayBB commented Sep 9, 2025

Closes #11229

Moved to httpx, set timeout, returning empty in localhost.

According to the docs:

You can tell Requests to stop waiting for a response after a given number of seconds with the timeout parameter. Nearly all production code should use this parameter in nearly all requests. Failure to do so can cause your program to hang indefinitely:

Technical

Testing

Screenshot

Stakeholders

@RayBB RayBB requested a review from mekarpeles September 9, 2025 05:01
@RayBB RayBB changed the title fix timeout on localhost fix availability timeout on localhost Sep 9, 2025
@github-project-automation github-project-automation bot moved this to Waiting Review/Merge from Staff in Ray's Project Sep 9, 2025
Copy link
Copy Markdown
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Lgtm! Tested on prod and availability appears to show up correctly

@cdrini cdrini changed the title fix availability timeout on localhost Add timeout to IA availability requests to avoid localhost hanging Nov 10, 2025
@cdrini cdrini merged commit 9931dad into master Nov 10, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from Waiting Review/Merge from Staff to Done in Ray's Project Nov 10, 2025
@cdrini cdrini deleted the fix/availability-local-env branch November 10, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

archive.org being down is taking down my local environment

3 participants