mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
fix: add keepAliveTimeout option
This commit is contained in:
parent
b3c0562f96
commit
58f36d03ea
@ -52,6 +52,8 @@ function defaultOptions() {
|
||||
customContextFields: [],
|
||||
disableDBMigration: false,
|
||||
start: true,
|
||||
keepAliveTimeout: 60 * 1000,
|
||||
headersTimeout: 61 * 1000,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -66,6 +66,8 @@ async function createApp(options) {
|
||||
const server = app.listen(options.listen, () =>
|
||||
logger.info('Unleash has started.', server.address()),
|
||||
);
|
||||
server.keepAliveTimeout = options.keepAliveTimeout;
|
||||
server.headersTimeout = options.headersTimeout;
|
||||
server.on('listening', () => {
|
||||
resolve({ ...payload, server });
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user