2
0
mirror of https://opendev.org/x/pyghmi synced 2025-02-10 07:44:02 +00:00

Correct the choice of slow/fast timeout

Change-Id: I2237dcc9cda84805134c1c369a9f68d31558d59d
This commit is contained in:
Jarrod Johnson 2022-06-15 12:02:16 -04:00
parent 5b2cc5bea7
commit 6226d4bb29

View File

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