Closed
Description
First of all, thank you so much for this amazing library! It is the best postgres driver so far.
We have a service with ~60 req/s to the database. The postgres package is set to default, only connection stuffs (host, port, username, password, dbName, ...) are set. Everything works like a charm, but after more or less 2 hours, small number of errors occur:
Error: write CONNECTION_CLOSED false
at Object.connection (/node-reverse/node_modules/postgres/lib/types.js:191:5)
at close (/node-reverse/node_modules/postgres/lib/connection.js:173:18)
at Socket.onclose (/node-reverse/node_modules/postgres/lib/connection.js:199:5)
at Object.onceWrapper (events.js:286:20)
at Socket.emit (events.js:198:13)
at TCP._handle.close (net.js:607:12)
The number of the errors increases with the time of application runtime. It seems like bad pool handling to me. We are testing it right now with the timeout
option, so I will let you know if it helps or not.
Metadata
Metadata
Assignees
Labels
No labels