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:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user