Idea #7697
Updated by Brett Smith almost 9 years ago
History: we added brute-force socket error retry handling in #7587. We want to improve it to use the same rules we're using in the Go SDK in #5538. Modify _intercept_http_request to do the following: * If we're doing a POST, and the underlying socket has been open for a while, close it. (httplib2 will automatically open a new one to make the request.) * Retry BadStatusLine and socket.error the same way as we currently do, way, but only if the original request was idempotent (i.e., GET or PUT).