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

connectionTimeout #778

Closed
ggazulla opened this issue Aug 1, 2018 · 4 comments
Closed

connectionTimeout #778

ggazulla opened this issue Aug 1, 2018 · 4 comments

Comments

@ggazulla
Copy link

ggazulla commented Aug 1, 2018

How can change default connectionTimeout from 15000ms to more?
I'm trying add connectionTimeout: 90000 to connection options but no way...

Thanks!

@Suraiya-Hameed
Copy link
Member

@ggazulla you can use options.connectTimeout property in connection config, refer http://tediousjs.github.io/tedious/api-connection.html

@ggazulla
Copy link
Author

ggazulla commented Aug 2, 2018

@v-suhame thanks for you reply.
I'm trying this but it doesn't work. In this API Docs. can't see how use the options.connectTimeout

let timeout 	= 90000
let config = {
		user:       data.db_username,
		password:   data.db_password,
		server:     data.hostname, 
		database:   data.db_name,
		options: {
			connectionTimeout: timeout,
			requestTimeout: timeout,
			encrypt: false 
		}
	}

@Suraiya-Hameed
Copy link
Member

Hey @ggazulla, it is connectTimeout and not connectionTimeout 😅 If you have used connectTimeout and still running into issue, can you share more details like the error stack, debug log and is this Azure Server?

@ggazulla
Copy link
Author

ggazulla commented Aug 6, 2018

@v-suhame Thanks you so much! it works! :)

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

2 participants