如何延长 liberty 网络服务器应用程序的超时时间,使其等待时间超过 60 秒?
How do you extend the timeout of a liberty webserver application so it will wait longer than 60 seconds?
我正在使用通过 Liberty Web 服务器提供服务的 Web 应用程序。我向另一个我无法控制的网站发出休息呼叫,它 returns 很慢。如果我发出一个非常基本的请求,那么我会在我的应用程序中取回数据,但是任何超过 60 秒的请求都会超时。我已经从我的应用程序中尝试了这个请求,它在 2-3 分钟内得到了 returns 数据,这对我正在做的事情来说很好。
如何延长 server.xml 中的超时时间,以便网络服务器在超时前等待更长时间?
我已尝试设置 httpOptions、tcpOptions 和事务。
持续60秒超时的调用在javascript中是这样调用的。代码中未设置超时,因此不应超时:
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”)
我正在使用 Websphere Application Server 17.0.0.1 Base
应用程序的其他功能可延长到 60 秒以上,因此此超时可能是 rails 应用程序内部的,而不是网络服务器。
可以在此处找到许多用于设置 libery 网络服务器超时的选项:
https://www.ibm.com/support/knowledgecenter/SSRTLW_8.5.5/com.ibm.websphere.wlp.nd.multiplatform.doc/autodita/rwlp_metatype_4ic.html
我正在使用通过 Liberty Web 服务器提供服务的 Web 应用程序。我向另一个我无法控制的网站发出休息呼叫,它 returns 很慢。如果我发出一个非常基本的请求,那么我会在我的应用程序中取回数据,但是任何超过 60 秒的请求都会超时。我已经从我的应用程序中尝试了这个请求,它在 2-3 分钟内得到了 returns 数据,这对我正在做的事情来说很好。
如何延长 server.xml 中的超时时间,以便网络服务器在超时前等待更长时间?
我已尝试设置 httpOptions、tcpOptions 和事务。
持续60秒超时的调用在javascript中是这样调用的。代码中未设置超时,因此不应超时:
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”)
我正在使用 Websphere Application Server 17.0.0.1 Base
应用程序的其他功能可延长到 60 秒以上,因此此超时可能是 rails 应用程序内部的,而不是网络服务器。
可以在此处找到许多用于设置 libery 网络服务器超时的选项: https://www.ibm.com/support/knowledgecenter/SSRTLW_8.5.5/com.ibm.websphere.wlp.nd.multiplatform.doc/autodita/rwlp_metatype_4ic.html