Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package_index: fix bug not catching some network timeouts #846

Merged
merged 1 commit into from
Dec 3, 2016
Merged

package_index: fix bug not catching some network timeouts #846

merged 1 commit into from
Dec 3, 2016

Conversation

jmuchemb
Copy link
Contributor

There are already so many exceptions catched, like socket errors (e.g. failure in name resolution) or HTTP errors. Depending on when a timeout occurs, it is either catched (URLError during the SSL handshake) or not (socket.error while getting a HTTP response).

When used by buildout, this fixes random failures when running in newest mode (which is the default case), or when the requested version is available in the download-cache.

There are already so many exceptions catched, like socket errors (e.g. failure
in name resolution) or HTTP errors. Depending on when a timeout occurs, it is
either catched (URLError during the SSL handshake) or not (socket.error while
getting a HTTP response).

When used by buildout, this fixes random failures when running in newest mode
(which is the default case), or when the requested version is available in the
download-cache.
@jaraco jaraco merged commit 5358117 into pypa:master Dec 3, 2016
jaraco added a commit that referenced this pull request Dec 3, 2016
@jmuchemb jmuchemb deleted the pkg-idx-timeout branch December 3, 2016 16:55
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