Skip to content

config.requestTimeout not effective - unable to override default 15000 ms #69

Description

@gvsaradhi

Hi,

I created a config with settings as in
var config = {
user= 'guest',
password= 'xxxx',
server= 'localhost\myDB',
connectionTimeout: 300000,
idleTimeoutMillis: 300000,
requestTimeout: 300000,
max: 100
}

I am able to connect and get data for other queries. When I tried accessing a relatively large data set I see that the request times out.
Even though I set the requestTimeout to 300000 as in the above config variable to connect using
service_config.sql.connect(service_config.config, function(err) {  ....}
I get Timeout: Request failed to complete in 15000 ms.
I tried printing out the variable just before connecting and I see that it is 300000.
Did I miss out on anything or is requestTimeout not effective.

Please help.

Thanks,
Vijay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions