uberdog: CSM should timeout if the server doesn't accept its login in a timely fashion.

This commit is contained in:
Sam Edwards 2013-10-08 16:09:59 -06:00
parent 2b5d37abe4
commit 562fd83d6b

View file

@ -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