1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

Merge pull request #1221 from fhp/master

fix: server keepAliveTimeout is in milliseconds, config value in seconds.
This commit is contained in:
Juan Picado @jotadeveloper 2019-02-07 16:40:59 +01:00 committed by GitHub
commit bbfd951a77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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