uberdog: CSM should timeout if the server doesn't accept its login in a timely fashion.
This commit is contained in:
parent
2b5d37abe4
commit
562fd83d6b
1 changed files with 2 additions and 0 deletions
|
@ -565,6 +565,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
|||
self.loginDoneEvent = 'loginDone'
|
||||
self.accept(self.loginDoneEvent, self.__handleLoginDone)
|
||||
self.csm.performLogin(self.loginDoneEvent)
|
||||
self.waitForDatabaseTimeout(requestName='WaitOnCSMLoginResponse')
|
||||
|
||||
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
||||
def __handleLoginDone(self, doneStatus):
|
||||
|
@ -590,6 +591,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
|||
|
||||
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
||||
def exitLogin(self):
|
||||
self.cleanupWaitingForDatabase()
|
||||
self.ignore(self.loginDoneEvent)
|
||||
del self.loginDoneEvent
|
||||
self.handler = None
|
||||
|
|
Loading…
Reference in a new issue