Skip to content

Commit 21abf37

Browse files
dimovdstankovd
dimov
authored andcommitted
fix: gracefully close pool connections sidorares#3148
1 parent bded498 commit 21abf37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/base/pool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class BasePool extends EventEmitter {
200200
Date.now() - this._freeConnections.get(0).lastActiveTime >
201201
this.config.idleTimeout)
202202
) {
203-
this._freeConnections.get(0).destroy();
203+
this._freeConnections.get(0)._realEnd();
204204
}
205205
} finally {
206206
this._removeIdleTimeoutConnections();

0 commit comments

Comments
 (0)