Skip to content

Commit

Permalink
fix: server keepAliveTimeout is in milliseconds, config value in seco…
Browse files Browse the repository at this point in the history
…nds.
  • Loading branch information
fhp committed Feb 7, 2019
1 parent 1c0b07a commit 7f79c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function startVerdaccio(config: any,
}
if (config.server && config.server.keepAliveTimeout) {
// $FlowFixMe library definition for node is not up to date (doesn't contain recent 8.0 changes)
webServer.keepAliveTimeout = config.server.keepAliveTimeout;
webServer.keepAliveTimeout = config.server.keepAliveTimeout * 1000;
}
unlinkAddressPath(addr);

Expand Down

0 comments on commit 7f79c77

Please sign in to comment.