If I send out 100 XMLHttpRequests requests with a 1 second timeout that take 1 second for the server to respond, will most of those requests timeout?
Asked
Active
Viewed 1,473 times
1 Answers
0
I ran a test with the following code (https://gist.github.com/anonymous/ba0fc7967829d7d0841d) and it turns out that yes - when a request is in the pending state that does count towards the XHR's timeout period.
That means if you want to timeout based on the server's connection being slow you'd need to set that up yourself.

Omar Ismail
- 217
- 3
- 7