I’m trying to figure out why downloading a couple of urls now takes 60 seconds (!!!) with CURLSMultiMBS. As far as I can see the project does nothing for a long time and then downloads the files quickly.
This delay drives me nuts because it screws up my KVM when I reboot. It makes Lifeboat fail to connect at launch for debug builds. It does nothing good as far as I’m concerned.
No can do. This is a very small part of a large algorithm. When a transfer is finished a notification is sent back to MimeCurlQueue which sets the isFinished property to true.
I’m quite sure that when I implemented this there was no 60 second delay with the same code. This hasn’t changed in years and years.
This would apply to Xojo2024r2 and newer. I’m still using Xojo 2024r1 which is before the preemptive threads. But it’s a good idea to test with r4. Nope, exact the same result.
And the example doesn’t even use a thread so this should sleep the main thread.
The slowdown is between starting CURL and actually doing something. I did a Console log and there is nothing in between the 2 actions. Even in Little Snitch I can see that between starting and actually trying to reach the websites there is a minute of meditation.
I guess your thread was indeed blocking, moved to timer did seem to work.
My debug output:
09:57:42 : mime curl test Launched
09:57:44 : MimeCurlQueue.Constructor
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
09:57:49 : Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: Calling download on [URL REMOVED FOR PUBLIC FORUM]
: No transfers
09:57:57 : mime curl test Ended
I don’t see any content being downloaded just yet.