CURLSMBS downloads much slower in web app than desktop

Xojo 2026 r1.2 MacOS Sequoia, M2 MacBook

I have code using CURLSMBS and SFTP that:

  1. Downloads a directory listing from an AWS bucket. The directory contains ≈20 .xlsx files.
  2. Then downloads each .xlsx file.

In a desktop app (older API 1 project) it completes in about 3 seconds.
In a Web App (new API 2 project) it takes > 30 seconds.

I use CURLSmultiMBS.SharedInstance to dispatch the CURLs, but have also tried a dedicated instance of CURLSmultiMBS with the same result.

The code is identical. What’s going on?

I wonder whether the web app is sleeping.

Could you run a timer in your app (from app.open) and call

CURLSMultiMBS.SharedInstance.Perform

regularly there to keep it working. Does that help?

Bingo. I didn’t know web apps go to sleep!