add delays to connection timeout when connecting and after no response from server (thanks to vaurien to identify this cases). add better retry logic when the errors happens when reading the response (e.g: connection break when reading body)