Apache HertzBeat(incubating) is a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities.
A cancel signal needs to be sent if the execution times out, otherwise the session cannot be closed promptly.
Call ChannelExec.close with the 'false' parameter to ensure the session is not kept alive.
If you want to reproduce the bug, set an ssh command that takes longer to execute than the timeout duration, such as 'sleep 10'. After the number of timeout occurrences reaches MaxSessions, it will trigger 'no session'.
What's changed?
Fix bug 1480
ChannelExec.close
with the 'false' parameter to ensure the session is not kept alive.If you want to reproduce the bug, set an ssh command that takes longer to execute than the timeout duration, such as 'sleep 10'. After the number of timeout occurrences reaches MaxSessions, it will trigger 'no session'.
Checklist
Add or update API