Skip to content

Commit

Permalink
fix(#3975): do not unref timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
metcoder95 committed Dec 31, 2024
1 parent ad7ac02 commit b6d553a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handler/retry-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class RetryHandler {
? Math.min(retryAfterHeader, maxTimeout)
: Math.min(minTimeout * timeoutFactor ** (counter - 1), maxTimeout)

setTimeout(() => cb(null), retryTimeout).unref()
setTimeout(() => cb(null), retryTimeout)
}

onResponseStart (controller, statusCode, headers, statusMessage) {
Expand Down

0 comments on commit b6d553a

Please sign in to comment.