INNER CODE UNIT · Go

timeout

yahoo/vssh · client.go:356

	timeout := time.Duration(dialTimeoutSec) * time.Second
	conn, err := net.DialTimeout("tcp", c.addr, timeout)
	if err != nil {
		c.setErr(err)
		return
	}

	sshConn, chans, req, err := ssh.NewClientConn(conn, c.addr, c.config)
	if err != nil {
		conn.Close()
		c.setErr(err)
		return
	}

	c.client = ssh.NewClient(sshConn, chans, req)
	c.lastUpdate = time.Now()
	c.err = nil
	c.stats.errRecent = 0

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…