Skip to content

fix(update): add timeout to PyPI version check request - #1920

Open
bunlongheng wants to merge 1 commit into
httpie:masterfrom
bunlongheng:fix/update-check-request-timeout
Open

fix(update): add timeout to PyPI version check request#1920
bunlongheng wants to merge 1 commit into
httpie:masterfrom
bunlongheng:fix/update-check-request-timeout

Conversation

@bunlongheng

Copy link
Copy Markdown

The background update checker in update_warnings.py calls requests.get(PACKAGE_INDEX_LINK) with no timeout. The check runs in a daemon thread, so a slow or unresponsive PyPI endpoint keeps the thread open indefinitely and can delay process exit. Added a 30-second timeout so the check fails fast if the server is unresponsive.

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.

1 participant