Skip to content

Commit

Permalink
reverted timeout padding and default requestTimeout default
Browse files Browse the repository at this point in the history
  • Loading branch information
u1473499 authored and u1473499 committed Mar 1, 2016
1 parent 456a5dc commit e3ac70c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugins/elasticsearch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function ({ Plugin }) {
username: string(),
password: string(),
shardTimeout: number().default(0),
requestTimeout: number().default(300000),
requestTimeout: number().default(30000),
pingTimeout: number().default(30000),
startupTimeout: number().default(5000),
ssl: object({
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/elasticsearch/lib/create_proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function createProxy(server, method, route, config) {
passThrough: true,
agent: createAgent(server),
xforward: true,
timeout: server.config().get('elasticsearch.requestTimeout') + 100
timeout: server.config().get('elasticsearch.requestTimeout')
}
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/server/KbnServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = class KbnServer {
let { server, config } = this;

await this.ready();
server.listener.timeout = config.get('elasticsearch.requestTimeout') + 100;
server.listener.timeout = config.get('elasticsearch.requestTimeout');
await fromNode(cb => server.start(cb));
await require('./pid')(this, server, config);

Expand Down

0 comments on commit e3ac70c

Please sign in to comment.