def initTask(self):
        super(CPPServerTask, self).initTask()

        self._stopped = False

        self.server = TCppServer(self.processor)
        # TODO: There is no API to set host yet.
        # self.server.setHost(self.host)
        self.server.setPort(self.port)
        self.server.setNWorkerThreads(self.num_threads)
        self.server.setup()

        self.bound_addrs = [self.server.getAddress()]

        for addrinfo in self.bound_addrs:
            self.bound_host, self.bound_port = addrinfo[0:2]
            self.logger.info("%s Server Started on %s", self.name,
                self._fmt_hostport(self.bound_host, self.bound_port))
Eliminate extraneous rebindings
dataset/ETHPy150Open facebook/sparts/sparts/tasks/thrift/cppserver.py/CPPServerTask.initTask--crossover with--dataset/ETHPy150Open bryancatanzaro/copperhead/copperhead/compiler/passes.py/unrebind