diff --git a/src/server/KbnServer.js b/src/server/KbnServer.js index 3c3a5aef28191..07fd7e54e97b5 100644 --- a/src/server/KbnServer.js +++ b/src/server/KbnServer.js @@ -39,7 +39,6 @@ module.exports = class KbnServer { () => { if (this.config.get('server.autoListen')) { this.ready = constant(resolve()); - this.server.listener.timeout = this.config.get('elasticsearch.requestTimeout') + 100; return this.listen(); } } @@ -74,6 +73,7 @@ module.exports = class KbnServer { let { server, config } = this; await this.ready(); + server.listener.timeout = config.get('elasticsearch.requestTimeout') + 100; await fromNode(cb => server.start(cb)); await require('./pid')(this, server, config);