0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00

fix: server keepAliveTimeout is in milliseconds, config value in seconds.

This commit is contained in:
Stef Louwers 2019-02-07 16:26:32 +01:00
parent 1c0b07a46e
commit 7f79c77354

View file

@ -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);