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
Driver keeps idle network connections in a connection pool. These
connections can get invalidated while resting idle in the pool.
They can be killed by network equipment like load balancer, proxy or
firewall. It is also safer to refresh connections once in a while so
that database can renew corresponding resources.
This commit adds `maxConnectionLifetime` setting and makes driver
close too old connections. Checking and closing happens during
connection acquisition.
Also removed manual `Date.now()` mocking in favour of
existing library - Lolex.
0 commit comments