Closed ivan-novakov closed 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:
idleTimeout
setTimeout
trireme-jdbc.js
trireme-jdbc-pool.js
As a result, if you use the default idleTimeout, which is 60, it means actually 60,000 seconds (more than 16 hours).
The
idleTimeout
parameter for the pool should be provided in seconds, but internally thesetTimeout
function works with milliseconds. So the value should be multiplied by 1000. But here it is done twice:trireme-jdbc.js
: https://github.com/apigee/trireme-jdbc/blob/master/lib/trireme-jdbc.js#L85trireme-jdbc-pool.js
: https://github.com/apigee/trireme-jdbc/blob/master/lib/trireme-jdbc-pool.js#L35As a result, if you use the default
idleTimeout
, which is 60, it means actually 60,000 seconds (more than 16 hours).