Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.

Commit f9f2853

Browse files
committed
browser: increate timeout to 30 seconds for slow middle tier machine
On slow machines, JVM/Spring can take a long time to "warm up" after it goes into "running state". Increase timeout to 30 seconds to help slow machines on initial request.
1 parent 0cbaf92 commit f9f2853

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

appserver/java-spring/static/_marklogic/services/data/mlModelBase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ define(['_marklogic/module'], function (module) {
395395
promises = [];
396396
}
397397
var httpConfig = this.getHttpConfig(httpMethod);
398-
httpConfig.timeout = 10000;
398+
httpConfig.timeout = 30000;
399399
var waiter = mlWaiter.waitOn(this);
400400
httpConfig.url = this.getBaseUrl() + httpConfig.url;
401401
promises.unshift($http(httpConfig));

browser/src/_marklogic/services/data/mlModelBase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ define(['_marklogic/module'], function (module) {
395395
promises = [];
396396
}
397397
var httpConfig = this.getHttpConfig(httpMethod);
398-
httpConfig.timeout = 10000;
398+
httpConfig.timeout = 30000;
399399
var waiter = mlWaiter.waitOn(this);
400400
httpConfig.url = this.getBaseUrl() + httpConfig.url;
401401
promises.unshift($http(httpConfig));

0 commit comments

Comments
 (0)