mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Add http.payloadTimeout
config option (#177309)
## Summary Fix https://github.com/elastic/kibana/issues/177138 - Add a `http.payloadTimeout` configuration option, to control the payload timeout - Set the default value for this option to `20s` (was `10s` previously)
This commit is contained in:
parent
9a473879af
commit
38a3b9675d
11 changed files with 46 additions and 2 deletions
|
@ -30,6 +30,9 @@ export const httpConfigSchema = schema.object(
|
|||
socketTimeout: schema.number({
|
||||
defaultValue: 120000,
|
||||
}),
|
||||
payloadTimeout: schema.number({
|
||||
defaultValue: 20000,
|
||||
}),
|
||||
cors: schema.object({
|
||||
enabled: schema.boolean({ defaultValue: false }),
|
||||
allowCredentials: schema.boolean({ defaultValue: false }),
|
||||
|
@ -53,6 +56,7 @@ export class HttpConfig implements IHttpConfig {
|
|||
shutdownTimeout: Duration;
|
||||
keepaliveTimeout: number;
|
||||
socketTimeout: number;
|
||||
payloadTimeout: number;
|
||||
cors: ICorsConfig;
|
||||
ssl: ISslConfig;
|
||||
restrictInternalApis: boolean;
|
||||
|
@ -64,6 +68,7 @@ export class HttpConfig implements IHttpConfig {
|
|||
this.maxPayload = rawConfig.maxPayload;
|
||||
this.shutdownTimeout = rawConfig.shutdownTimeout;
|
||||
this.keepaliveTimeout = rawConfig.keepaliveTimeout;
|
||||
this.payloadTimeout = rawConfig.payloadTimeout;
|
||||
this.socketTimeout = rawConfig.socketTimeout;
|
||||
this.cors = rawConfig.cors;
|
||||
this.ssl = new SslConfig(rawConfig.ssl);
|
||||
|
|
|
@ -39,6 +39,7 @@ describe('BasePathProxyServer', () => {
|
|||
shutdownTimeout: moment.duration(30, 'seconds'),
|
||||
keepaliveTimeout: 1000,
|
||||
socketTimeout: 1000,
|
||||
payloadTimeout: 1000,
|
||||
cors: {
|
||||
enabled: false,
|
||||
allowCredentials: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue