def close(self): req = TCloseSessionReq(sessionHandle=self.handle) self._rpc('CloseSession', req)
def close_session(service, session_handle): req = TCloseSessionReq(sessionHandle=session_handle) log.debug('close_session: req=%s', req) resp = service.CloseSession(req) log.debug('close_session: resp=%s', resp) err_if_rpc_not_ok(resp)