我正在寻找某种文档来指定每个浏览器(IE6/IE7/FF2/FF3 等)在请求放弃和超时之前等待请求的时间。
我没有任何运气试图得到这个。
有什么建议吗?
最佳答案
我设法找到了 network.http.connect.timeout对于更旧版本的 Mozilla:
This preference was one of several added to allow low-level tweaking of the HTTP networking code. After a portion of the same code was significantly rewritten in 2001, the preference ceased to have any effect (as noted in all.js as early as September 2001).
Currently, the timeout is determined by the system-level connection establishment timeout. Adding a way to configure this value is considered low-priority.
看起来 network.http.connect.timeout
已经有一段时间没有做任何事情了。
我还看到了对 network.http.request.timeout
的引用,所以我做了 Google search .结果包括很多人的链接,这些人建议其他人将其包含在 about:config
中,这似乎是一种错误的信念,认为它确实在做某事,因为同样的搜索会出现这个 about:config entries。文章:
Pref removed (unused). Previously: HTTP-specific network timeout. Default value is 120.
same page包含有关 network.http.connect.timeout
的附加信息:
Pref removed (unused). Previously: determines how long to wait for a response until registering a timeout. Default value is 30.
免责声明:MozillaZine 知识库中的信息可能不正确、不完整或已过时。
关于http - 在哪里可以找到所有浏览器的默认超时设置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1342310/