Skip to content

Commit 6458896

Browse files
authored
Merge pull request #14264 from webpack/bugfix/hanging
2 parents 20da4b1 + ff69b3f commit 6458896

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/cache/PackFileCacheStrategy.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ class Pack {
118118
this.requests.push(undefined);
119119
this.requestsTimeout = undefined;
120120
}, MAX_TIME_IN_FRESH_PACK);
121+
if (this.requestsTimeout.unref) this.requestsTimeout.unref();
122+
}
123+
}
124+
125+
stopCapturingRequests() {
126+
if (this.requestsTimeout !== undefined) {
127+
clearTimeout(this.requestsTimeout);
128+
this.requestsTimeout = undefined;
121129
}
122130
}
123131

@@ -1232,6 +1240,7 @@ class PackFileCacheStrategy {
12321240
const reportProgress = ProgressPlugin.getReporter(this.compiler);
12331241
return (this.storePromise = packPromise
12341242
.then(pack => {
1243+
pack.stopCapturingRequests();
12351244
if (!pack.invalid) return;
12361245
this.packPromise = undefined;
12371246
this.logger.log(`Storing pack...`);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy