Skip to content

Commit fdd5742

Browse files
author
dimov
committed
fix: gracefully close pool connections sidorares#3148
1 parent cd57bcd commit fdd5742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pool.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class Pool extends EventEmitter {
205205
Date.now() - this._freeConnections.get(0).lastActiveTime >
206206
this.config.idleTimeout)
207207
) {
208-
this._freeConnections.get(0).destroy();
208+
this._freeConnections.get(0)._realEnd();
209209
}
210210
} finally {
211211
this._removeIdleTimeoutConnections();

0 commit comments

Comments
 (0)