Skip to content
Permalink
Browse files
[CONJS-42] check other connections in pool when an unexpected connect…
…ion error occur
  • Loading branch information
rusher committed Aug 25, 2018
1 parent 2c88755 commit 0869c96
Showing 1 changed file with 4 additions and 0 deletions.
@@ -392,6 +392,10 @@ function Pool(options, useCallback) {
if (currConn === conn) {
idleConnections.removeOne(idx);
break;
} else {
//since connection did have an error, other waiting connection might too
//forcing validation when borrowed next time, even if "minDelayValidation" is not reached.
currConn.lastUse = new Date(0);
}
idx++;
}

0 comments on commit 0869c96

Please sign in to comment.