-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Timeout for bad internet connection #743
Comments
If I were to add a request timeout, I would need to:
I think this timeout would be disabled by default. I'll look into this more in 3.5. |
Ok thanks, Best Regards, |
@Maigre Can you possibly tell me a little more about your situation? What sort of number are you thinking of using as your timeout value? How would you expect this timeout to work? I am asking based on the following observations & facts:
In order to make this timeout work cross-browser, I'd have to code my own timeout support for webkit browsers. I'd also need to create some sort of a timeout for form-based uploads (in order to make this feature cross-browser), but I'm not sure it is possible to make it behave like the Thoughts? |
Pushing this to 3.6, or until I receive more feedback on this request. If I don't receive any feedback within the next couple release cycles, I'll close this as "will not implement". |
Moved to 3.7. If I don't get any feedback during work on 3.6, I will probably close this as "will not implement". |
No response after a month, closing. |
XHR timeouts are now supported in Chrome/Safari, so perhaps we should look into implementing this. |
I'm going to look into this as part of 5.11.9, since network errors (particularly pulling the connection mid-upload) causes the upload to hang for a long time. That seems like a bug to me, and if we can make this less of an issue, even in a subset of browsers, that seems like a big win. |
I think I now remember why I kicked this can down the road for so long. Setting a timeout on an The problem with the standardized behavior of In light of this, I'm strongly considering abandonment of this "feature". Another option: advise integrators to set a reasonably high value, but this honestly seems like it may cause more problems than it solves. I'm open to input, but I'm putting this on hold for now. |
- A default value for all requests (request.timeout) - chunking.success.timeout override - request.completeMultipart.timeout override - request.putBlockListOverride #743
Hi there !
Thanks for your uploader, it's a really big help :)
The problem:
I try to upload big files over bad internet connection (chunks are usefull !)
but if my connection drop in the middle of the upload,
the ajax POST of the current chunk doesn't recieve answer from the server,
and it continue to wait... (regardless if the connection is back or not)
is it possible to set up a timeout on the ajax waiting,
so if the connection has dropped it start to retry (in case the connection is back)
and finally push an error if it is still impossible to reach the server
so the client can check his connection and then manually retry ?
Thanks !
Best Regards,
Thomas
The text was updated successfully, but these errors were encountered: