brianc / node-pg-pool

A connection pool for node-postgres
MIT License
180 stars 64 forks source link

Does idleTimeoutMillis = -1 keep connections open indefinently #64

Closed joekiller closed 7 years ago

joekiller commented 7 years ago

Does idleTimeoutMillis = -1 keep connections open indefinitely or cause them to close immediately? Reading the ops of [node-poo]l1 led me to believe the connection would just stay open but this doesn't seem to be the case.

joekiller commented 7 years ago

Thank you @brianc

brianc commented 7 years ago

Totally! Meant to come respond back to this: you can set it to 0 to disable it now. :) pg-pool@2.x is compatible with node>=v4.x and pg>=5.x - hopefully it works for you!