Project

General

Profile

Idea #7697

Updated by Tom Clegg about 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 about to do doing a POST or DELETE, 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, but only if the original request was idempotent (i.e., HEAD, GET, GET or PUT).

Back