예제 #1
0
 def close(self):
     req = TCloseSessionReq(sessionHandle=self.handle)
     self._rpc('CloseSession', req)
예제 #2
0
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)