You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(postgres): invalidate connection after client-side timeout (#15283)
* fix(postgres): invalidate connection after client-side timeout
Merge ff43e8d from main:
The `query_timeout` feature of the `pg` package helps handle stuck TCP
connections more quickly and gracefully by implementing a client-side
timeout:
brianc/node-postgres#1713
Sequelize started passing this dialect-specific option through to `pg` here:
#13258
I believe we also want to invalidate the connection when a client-side
timeout occurs. We shouldn't try to reuse the stuck connection
because...it's stuck.
This PR updates the error handling code so that the connection is
invalidated if the error matches the one thrown from here:
https://github.com/brianc/node-postgres/blob/5538df6b446f4b4f921947b460fe38acb897e579/packages/pg/lib/client.js#L529
* fix syntax error
* fix another syntax error
* fix import
0 commit comments