Skip to content

Commit

Permalink
fix: gracefully close pool connections sidorares#3148
Browse files Browse the repository at this point in the history
  • Loading branch information
dimov authored and dstankovd committed Nov 14, 2024
1 parent bded498 commit 21abf37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class BasePool extends EventEmitter {
Date.now() - this._freeConnections.get(0).lastActiveTime >
this.config.idleTimeout)
) {
this._freeConnections.get(0).destroy();
this._freeConnections.get(0)._realEnd();
}
} finally {
this._removeIdleTimeoutConnections();
Expand Down

0 comments on commit 21abf37

Please sign in to comment.