'Connect if disconnected.
Retry self.maxtries times with delays'

def _reconnect(self):

    if (not self._isconnected()):
        try:
            self._connect()
        except http_client.socket.error as e:
            if ((e.errno == 61) or (e.errno == 10061)):
                time.sleep(self._delay)
                self._delay += self._delay
                self._tries += 1
                if (self._tries < self.maxtries):
                    self._reconnect()
                else:
                    self._reset_retries()
                    raise e
            else:
                raise e
    self._closed = False
