Skip to content

fix: set FakeSession.maxtimeout before pyghmi _initsession - #624

Merged
glaslos merged 1 commit into
mushorg:mainfrom
AzazelSensei:fix-577-ipmi-maxtimeout
Aug 30, 2026
Merged

glaslos merged 1 commit into
mushorg:mainfrom
AzazelSensei:fix-577-ipmi-maxtimeout

Conversation

@AzazelSensei

Copy link
Copy Markdown
Contributor

handle() built a FakeSession for every new source and crashed:

AttributeError: 'FakeSession' object has no attribute 'maxtimeout'

pyghmi Session.init sets maxtimeout; FakeSession skips that and jumps to _initsession(). From pyghmi 1.5 that method calls _getmaxtimeout(), so the greenlet died and nothing went back out.

Set maxtimeout=3 (same default as pyghmi) before _initsession().

Fixes #577

Newer pyghmi _initsession() calls _getmaxtimeout(), which reads
maxtimeout. FakeSession never calls Session.__init__, so handle()
died with AttributeError and dropped the UDP packet.

Fixes mushorg#577
@glaslos
glaslos merged commit 8ddc975 into mushorg:main Aug 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IPMI server not responding

2 participants