Andrew (Digitwell) Well-Known Member Licensed User Longtime User Apr 2, 2018 #1 I'm using a modified version of the ImageDownloader code to download videos from an amazon S3 bucket. The only difference is that the returned file is saved to the disk rather than saved in a KVS. In all I am downloading 6 videos which vary in size from 50MB to 100MB. On Android the code works fine. All videos downloaded no problem. On iOS I occasionally get timeout errors being returned. A second attempt to download the video succeeds. Even when the download works it is significantly slower than on Android. Is this expected behaviour? I'm running an iPhone 5S on 10.3 vs HTC one M7 Thanks
I'm using a modified version of the ImageDownloader code to download videos from an amazon S3 bucket. The only difference is that the returned file is saved to the disk rather than saved in a KVS. In all I am downloading 6 videos which vary in size from 50MB to 100MB. On Android the code works fine. All videos downloaded no problem. On iOS I occasionally get timeout errors being returned. A second attempt to download the video succeeds. Even when the download works it is significantly slower than on Android. Is this expected behaviour? I'm running an iPhone 5S on 10.3 vs HTC one M7 Thanks
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2018 #2 You can increase the request timeout. Code: job.Download(...) job.GetRequest.Timeout = 100 * 6000 Make sure that both iHttp and iHttpUtils2 are checked. Upvote 0
You can increase the request timeout. Code: job.Download(...) job.GetRequest.Timeout = 100 * 6000 Make sure that both iHttp and iHttpUtils2 are checked.
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Apr 3, 2018 #3 Thanks Erel, It would seem the default timeout on Android is 30000 and on iOS is 60000. I've upped it to 10 minutes and that seems to have done the trick It is strange that android is so much quicker at the download. Upvote 0
Thanks Erel, It would seem the default timeout on Android is 30000 and on iOS is 60000. I've upped it to 10 minutes and that seems to have done the trick It is strange that android is so much quicker at the download.
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2018 #4 Try it with: Code: job.GetRequest.SetHeader("Accept-Encoding", "gzip") Does it make any difference? Upvote 0
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Apr 3, 2018 #5 This doesn't seem to produce any measureable difference. Upvote 0