| 74 | var activeConnCounter = &atomic.Int32{} |
| 75 | |
| 76 | type SSHConn struct { |
| 77 | lock *sync.Mutex // this lock protects the fields in the struct from concurrent access |
| 78 | lifecycleLock *sync.Mutex // this protects the lifecycle from concurrent calls |
| 79 | |
| 80 | Status string |
| 81 | ConnHealthStatus string |
| 82 | WshEnabled *atomic.Bool |
| 83 | Opts *remote.SSHOpts |
| 84 | Client *ssh.Client |
| 85 | DomainSockName string // if "", then no domain socket |
| 86 | DomainSockListener net.Listener |
| 87 | ConnController *ssh.Session |
| 88 | Error string |
| 89 | WshError string |
| 90 | NoWshReason string |
| 91 | WshVersion string |
| 92 | LastConnectTime int64 |
| 93 | ActiveConnNum int |
| 94 | Monitor *ConnMonitor // will not be nil |
| 95 | } |
| 96 | |
| 97 | var ConnServerCmdTemplate = strings.TrimSpace( |
| 98 | strings.Join([]string{ |
nothing calls this directly
no outgoing calls
no test coverage detected