2
0
mirror of https://opendev.org/x/pyghmi synced 2026-04-01 15:53:32 +00:00

More aggressively timeout on unconnected systems

When setting max timeout, select a more aggressive timeout
if recent connectivity hasn't been confirmed.

Change-Id: I806d0cddb53e4e2246c6de86e561dbd658a76256
This commit is contained in:
Jarrod Johnson
2022-06-15 10:50:21 -04:00
parent 966c8709f8
commit 5b2cc5bea7

View File

@@ -1763,10 +1763,11 @@ class Session(object):
self._mark_broken()
return
else:
self.maxtimeout = 6
if self.sessioncontext == 'ESTABLISHED':
self.onlogpayload = self.lastpayload
self.onlogpayloadtype = self.last_payload_type
self.maxtimeout = 6
self.maxtimeout = 2
self._relog()
return
elif self.sessioncontext == 'FAILED':