Skip to content

Commit

Permalink
[FIX] Prevent socket timeouts when installing framework libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
matz3 committed Feb 15, 2023
1 parent 6d753a8 commit a198356
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/ui5Framework/npm/Registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ class Registry {
if (!this._npmConfig) {
const {default: libnpmconfig} = await import("libnpmconfig");
const opts = {
cache: this._cacheDir
cache: this._cacheDir,
// Disable usage of shared keep-alive agents.
// make-fetch-happen uses a hard-coded 15 seconds freeSocketTimeout
// that can be easily reached (Error: Socket timeout) and there doesn't
// seem to be another way to disable or increase it.
// Also see: https://github.com/node-modules/agentkeepalive/issues/106
agent: false,
};
const config = libnpmconfig.read(opts, {
cwd: this._cwd
Expand Down

0 comments on commit a198356

Please sign in to comment.