Skip to content
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

The difference between parameters : connection timeout and dial timeout #744

Open
mingkwind opened this issue May 18, 2022 · 1 comment
Open

Comments

@mingkwind
Copy link

I test them in my PC.
I find that the parameter (dial timeout) is the controller of connection timeout but the parameter (connection timeout) can not control connection timeout.
Is there something wrong in the Introduction for the parameter connection timeout?

@mingkwind
Copy link
Author

dataSourceName := fmt.Sprintf("sqlserver://%v:%v@%v:%v?database=%v&dial+timeout=%v",
service.Username, service.Password, service.Ip, service.Port, "master", timeout)
db, err := sql.Open("mssql", dataSourceName)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant