def __init__(self, host_query, host_write, port_query, port_write, db):
        self.query_uri = urlparse.urlunparse(urlparse.ParseResult(
            'http', '%s:%d' % (host_query, port_query), 'graph/history',
            None, None, None))
        self.prefix = db
        self.write_addr = (host_write, port_write)

        self.socket = None
        self.stream = None
        self.id_counter = None
        self.buf_size = None
        self.reconnect()
dataset/ETHPy150Open HunanTV/redis-ctl/stats/db.py/Client.__init__/original