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

Already on GitHub? Sign in to your account

Enumerate all the HTTP errors a request should be retried on. #8

Open
robertkeizer opened this Issue Aug 12, 2013 · 0 comments

Comments

Projects
None yet
1 participant
Owner

robertkeizer commented Aug 12, 2013

The python-couchdb module has the following defined, and retries the request if any one of these errors is hit.

RETRYABLE_ERRORS = frozenset([
    errno.EPIPE, errno.ETIMEDOUT,
    errno.ECONNRESET, errno.ECONNREFUSED, errno.ECONNABORTED,
    errno.EHOSTDOWN, errno.EHOSTUNREACH,
    errno.ENETRESET, errno.ENETUNREACH, errno.ENETDOWN
])

@ghost ghost assigned robertkeizer Aug 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment