我们有一个设置,浏览器向Box A发起http请求,然后向Box B发起http请求。我们遇到的情况是,Box A等待Box B响应两分钟,然后用户看到:
The page cannot be displayed Explanation: There is a problem with the page you are trying to reach and it cannot be displayed. Try the following: * Refresh page: Search for the page again by clicking the Refresh button. The timeout may have occurred due to Internet congestion. * Check spelling: Check that you typed the Web page address correctly. The address may have been mistyped. * Access from a link: If there is a link to the page you are looking for, try accessing the page from that link. Technical Information (for support personnel) * Error Code: 404 Not Found. The requested item could not be located. (12028)
看着Box B的日志,我们发现需要5分钟才能完成所要求的工作。
问题是两个盒子上的apache超时设置为1200(20m),而不是120(2m)。
任何想法在哪里看?
编辑:框A通过运行一些Perl代码来处理请求,该代码向框B发出HTTP请求。
如果这是来自浏览器。 我怀疑这是一个浏览器端超时。 在某些浏览器中,它是可configuration的,请参阅http://support.microsoft.com/kb/813827关于如何为Internet Explorer设置它。
一种解决方法是定期发送一些数据,如HTML注释,以保持连接的活动。
我能够确定我遇到的响应是由微软的ISA防火墙产生的,与Apache甚至我们的盒子无关。 我没有意识到我们的客户有我们的防火墙背后的箱子,甚至防火墙有超时设置。