You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @gmichelo being in the waiter func how do I know if the ssh session is still on . I know keepAlive is what keeps the ssh session up for a user now in order to communicate if ssh session is started or ended to the waiter func do I need to send a siglnal via chan based on ctx.Done present in the keepAlive and take actions on it in waiter.
Also when you said goroutine for waiter on what basis do we want that goroutine to return.
P.S. I am facing confusion regarding how components talk/connected to each other
At the moment, the Breakpoint timer can expire even if there is an active SSH connection.
In the same way we run keepalives to keep the connection open, we can periodically extend the timer when at least an SSH session is active.
Here is where we spawn a goroutine to send the keepalives.
https://github.com/namespacelabs/breakpoint/blob/main/pkg/sshd/sshd.go#L81-L82
Similarly, we can have another goroutine periodically extending the waiter timer
BR-2
The text was updated successfully, but these errors were encountered: