Skip to content

Commit

Permalink
set socket timeout in listen()
Browse files Browse the repository at this point in the history
Fixes #6377
  • Loading branch information
u1473499 authored and w33ble committed Mar 2, 2016
1 parent 0bfeeea commit f3830d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/KbnServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit f3830d9

Please sign in to comment.