Is There Any Maximum/minimum Timeout For The Xmlhttprequest?
Is there any maximum timeout for the xmlhttprequest ? Currently its not possible to set timeout value more than 1 minute in chrome. let xmlHttpRequest: XMLHttpRequest = new XMLHt
Solution 1:
Yes, there is a maximum timeout for xmlhttprequest in chrome, and that is 1 minute. Unfortunately you can not increase the timeout by setting the timeout property of xmlhttprequest in chrome. But if you are on windows, you might possibly set the maixmum tmeout with the help of regedit, and the steps are ...
- press
window + r> typeregedit> pressenter - navigate to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSettings - create a
DWORDvale namedKeepAliveTimeoutand set the data value120000(2 min.) - create another value named
ServerInfoTimeout, following the same steps - restart PC
Solution 2:
No, the XMLHttpRequest object does not have a maximum timeout value, because the default timeout value is 0, meaning infinite.
Source: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout
You mentioned Chrome: the network stack you are on does have timeout limitations.
Google Chrome will not let you change the default timeout values.
Post a Comment for "Is There Any Maximum/minimum Timeout For The Xmlhttprequest?"