javascript HTTP 请求的默认超时时间是多少?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15178479/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the default timeout for HTTP requests?
提问by hexacyanide
When I load something in a browser, what's the default amount of time a browser will take to attempt to establish a connection?
当我在浏览器中加载某些内容时,浏览器尝试建立连接所需的默认时间是多少?
Can this be increased in Javascript or HTML?
这可以在 Javascript 或 HTML 中增加吗?
Cases that I would require this are server-side time sampling without a server-side loop, etc.
我需要这样做的情况是没有服务器端循环的服务器端时间采样等。
回答by gmaliar
can't be set from your frontside as it is a server-side configuration.
不能从您的前端设置,因为它是服务器端配置。