I'm working with a web application that is served via the Liberty Webserver. I make a rest call out to another website that I do not have control over and it returns slowly. If I make a very basic request then I get data back in my application, but any request that takes more than 60 seconds times out. I've tried this request out of my application and it returns data in a 2-3 minutes, which is fine for what I'm doing.
How do I extend the timeout in server.xml so that the webserver will wait longer before timing out?
I've tried the settings httpOptions, tcpOptions, and transaction.
The call that consistently times out at 60 seconds is made in javascript like this. A timeout isn't set in the code so it shouldn't timeout:
var xmlHttp = new XMLHttpRequest();
function httpGet(theUrl){
xmlHttp.open("GET", theUrl, false); // false for synchronous request
xmlHttp.send( null );
return xmlHttp.responseText;
}
response = httpGet(“SOMEURL”)
I'm using Websphere Application Server 17.0.0.1 Base