apigee / trireme-jdbc

Other
9 stars 5 forks source link

idleTimeout is multiplied by 1000 twice #6

Closed ivan-novakov closed 8 years ago

ivan-novakov commented 8 years ago

The idleTimeout parameter for the pool should be provided in seconds, but internally the setTimeout function works with milliseconds. So the value should be multiplied by 1000. But here it is done twice:

As a result, if you use the default idleTimeout, which is 60, it means actually 60,000 seconds (more than 16 hours).