I wrote an app in B4J that retrieves a list of folders and files on a FlashAir WiFi SD card and downloads them. For the most part everything is working fine, but I noticed that if I sent a high number of download requests (these are all through http urls) back to back (say, over 90) that the program would just stall out and eventually I would start getting timeouts. The end result was that nothing would get downloaded other than maybe a few files.
I chalked this up to the FlashAir being overwhelmed by too many consecutive or concurrent requests so I limited the number of files that a user could select at a time. Worked fine for me. But someone else with the same FlashAir card and a more powerful computer is having this problem with just 30 or so files to download.
Is there a way I can limit the max number of concurrent requests in the core HTTPUtils library? I know I could try to track this myself and send more requests as results come back but I was wondering if there may be an easier way.
I chalked this up to the FlashAir being overwhelmed by too many consecutive or concurrent requests so I limited the number of files that a user could select at a time. Worked fine for me. But someone else with the same FlashAir card and a more powerful computer is having this problem with just 30 or so files to download.
Is there a way I can limit the max number of concurrent requests in the core HTTPUtils library? I know I could try to track this myself and send more requests as results come back but I was wondering if there may be an easier way.