mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
cloudproxy: agent: ssh: cancel on return from Start
This commit is contained in:
@@ -143,6 +143,9 @@ func (c *Client) Stop(ctx context.Context) {
|
||||
}
|
||||
|
||||
func (c *Client) Start(ctx context.Context) {
|
||||
ctx, cancelFunc := context.WithCancel(ctx)
|
||||
defer cancelFunc()
|
||||
|
||||
pingT := time.NewTimer(17 * time.Second)
|
||||
pingFailCount := 0
|
||||
const pingMaxFail = 3
|
||||
|
||||
Reference in New Issue
Block a user