Skip to content

Commit

Permalink
Don't prevent NodeJS from closing to run acquisition timeout error (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed May 31, 2024
1 parent 536b1e0 commit 75d3040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/bolt-connection/src/pool/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class Pool {
)
}
}, this._acquisitionTimeout)
typeof timeoutId === 'object' && timeoutId.unref()

request = new PendingRequest(key, acquisitionContext, config, resolve, reject, timeoutId, this._log)
allRequests[key].push(request)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class Pool {
)
}
}, this._acquisitionTimeout)
typeof timeoutId === 'object' && timeoutId.unref()

request = new PendingRequest(key, acquisitionContext, config, resolve, reject, timeoutId, this._log)
allRequests[key].push(request)
Expand Down

0 comments on commit 75d3040

Please sign in to comment.