You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PyPI metadata requests have no socket timeout #3593
When a PyPI metadata request stops responding, seed wheel downloads and periodic updates can wait indefinitely on socket I/O.
Affected code
The PyPI JSON request omits the timeout. The seed index client already specifies a 15-second socket timeout. Metadata requestIndex request
Reproduction
On ea7688a0, stub urllib.request.urlopen at the periodic update module boundary and call release_date_for_wheel_path(Path("pip-20.1.whl")) with an empty metadata cache. The captured arguments contain context=None and omit timeout. The request should specify a finite socket timeout so the caller can handle a stalled connection.
Impact
Reproduction is moderate and exposure is niche. An update or download must reach the metadata lookup while the network is unresponsive.
Activity