Tedious: connectionTimeout

Created on 1 Aug 2018  路  4Comments  路  Source: tediousjs/tedious

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

Thanks!

Most helpful comment

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?

All 4 comments

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

@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 
        }
    }

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?

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

Was this page helpful?
0 / 5 - 0 ratings