retErr=multierror.Append(retErr,fmt.Errorf("error dialing controller for worker auth: %w",err))
continue
}
c.conf.Logger.Info("negotiated a protocol","proto",conn.ConnectionState().NegotiatedProtocol,"mutual",conn.ConnectionState().NegotiatedProtocolIsMutual)
_,err=conn.Write([]byte("foo"))
iferr!=nil{
retErr=multierror.Append(retErr,fmt.Errorf("error writing test string to controller for worker auth: %w",err))
continue
}
_,err=conn.Read(make([]byte,3))
iferr!=nil{
retErr=multierror.Append(retErr,fmt.Errorf("error reading test string from controller for worker auth: %w",err))