浏览器超时 [英] Browser Timeouts
问题描述
做的浏览器都内置超时,如果是这样,它们是什么?
Do browsers have built in timeouts and if so what are they?
我有一个网页,做一个过程,需要最多5分钟,运行一个AJAX调用。有人说2分钟后,浏览器超时,但不知道是否有任何真理这一点。
I have a page that does an AJAX call on a process that takes at most 5 minutes to run. Someone said browsers timeout after 2 minutes but didn't know if there was any truth to that.
推荐答案
这是依赖于浏览器。
默认情况下,IE浏览器有两分钟一分钟的附加限制因素(ServerInfoTimeout)的KeepAliveTimeout值。任何一个设置都可导致Internet Explorer重置套接字。 - 从IE浏览器的支持 http://support.microsoft.com/kb/813827
Firefox是围绕着相同的值,我认为也是如此。
Firefox is around the same value I think as well.
虽然通常服务器超时设置比浏览器超时低,但至少你可以控制,并设置较高的。
Usually though server timeout are set lower than browser timeouts, but at least you can control that and set it higher.
您宁愿处理超时的,所以这样你可以在这样的事件采取行动。
看到这个主题:<一href=\"http://stackoverflow.com/questions/1018705/how-to-detect-timeout-on-an-ajax-xmlhtt$p$pquest-call-in-the-browser\">How在浏览器的AJAX(XmlHtt prequest)调用检测超时?
You'd rather handle the timeout though, so that way you can act upon such an event. See this thread: How to detect timeout on an AJAX (XmlHttpRequest) call in the browser?
这篇关于浏览器超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!