-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS 15 + SQL Server 2014 doesn't work #364
Comments
Can you share the error you're seeing? That might help narrow things down. Out of curiousity, does it work without the |
[dependencies]
tiberius = { version = "0.12", default-features = false, features = [
# "rustls",
# "native-tls",
"vendored-openssl",
"tds73",
] }
tokio = { version = "1", features = ["full"] }
tokio-util = { version = "0.7", features = ["compat"] } tested without use tiberius::{AuthMethod, Client, Config, EncryptionLevel};
use tokio::net::TcpStream;
use tokio_util::compat::TokioAsyncWriteCompatExt;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut config = Config::new();
config.host("192.168.50.74");
config.port(1433);
config.authentication(AuthMethod::sql_server("user", "password"));
config.encryption(EncryptionLevel::Off);
config.trust_cert();
let tcp = TcpStream::connect(config.get_addr()).await?;
tcp.set_nodelay(true)?;
let _client = match Client::connect(config, tcp.compat_write()).await {
// Connection successful.
Ok(client) => client,
Err(e) => Err(e)?,
};
Ok(())
} rustlsError: Io { kind: UnexpectedEof, message: "tls handshake eof" } native-tlsget error after long time: Error: Tls("connection closed via error") vendored-opensslError: Tls("unexpected EOF") version:sql server version:
openssl:
Thanks @NTmatter |
I have tested rustls/vendored-openssl feature, it doesn't work for macOS 15 connecting to SQL Server 2014 in Windows Server 2012 R2
The text was updated successfully, but these errors were encountered: