What is the default timeout for AngularJS $http service requests?

泄露秘密 提交于 2019-12-22 03:40:38

问题


In $http docs it does not mention which is the default timeout in case of undefined.

How can I know which is the default value for this configuration?


回答1:


At one time the default timeout for http requests was 30 seconds, but now many browsers perform "keep-alive" polling by default so in all practicality there isn't one. I've had http requests sit for several minutes before the server itself finally gave up and issued a timeout.



来源:https://stackoverflow.com/questions/37547229/what-is-the-default-timeout-for-angularjs-http-service-requests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!