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
Connection pool has limited size and returns `Promise<Connection>`
instead of `Connection` directly. Returned promise can be failed when
connection acquisition timeout has fired. Pool uses helper function
`util#promiseOrTimeout()` to race acquisition and timeout promises.
This function allowed both timeout callback to be invoked and connection
to be acquired. It cleared the timeout outside of the raced promises. As
result connection was acquired but timeout callback failed in background.
It tried to clear non-existing pending acquisition attempts.
This commit fixes the problem by including `#clearTimeout()` call in
the chain of raced promises.
0 commit comments