1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

fix: SERVER_KEEPALIVE_TIMEOUT env variable should be seconds (#4130)

This changes SERVER_KEEPALIVE_TIMEOUT to take in seconds instead of
milliseconds.
This commit is contained in:
Gard Rimestad 2023-07-03 09:35:02 +02:00 committed by GitHub
parent b329084a69
commit 608b1b9674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,9 +166,8 @@ const defaultServerOption: IServerOption = {
process.env.ENABLE_HEAP_SNAPSHOT_ENPOINT, process.env.ENABLE_HEAP_SNAPSHOT_ENPOINT,
false, false,
), ),
keepAliveTimeout: parseEnvVarNumber( keepAliveTimeout: secondsToMilliseconds(
process.env.SERVER_KEEPALIVE_TIMEOUT, parseEnvVarNumber(process.env.SERVER_KEEPALIVE_TIMEOUT, 15),
secondsToMilliseconds(15),
), ),
headersTimeout: secondsToMilliseconds(61), headersTimeout: secondsToMilliseconds(61),
enableRequestLogger: false, enableRequestLogger: false,