Skip to content

Connecting to Azure SQL with tokio (on mac) gives a Tls connection closed via error. #65

@AdsSengupta

Description

@AdsSengupta

this is my code

let mut config = Config::from_ado_string("server=xxx.database.windows.net,1433;UID=xxx;PWD=xxx;TrustServerCertificate=true")?;
let tcp = TcpStream::connect(config.get_addr()).await?;
tcp.set_nodelay(true)?;
let mut client = Client::connect(config, tcp.compat_write()).await.expect("Failed!");

and I get
thread 'main' panicked at 'Failed!: Tls("connection closed via error")', src/main.rs:80:22

Metadata

Metadata

Assignees

Labels

kind/featureA request for a new feature.team/clientIssue for team Client.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions