Downloadfile, hURL and Async Mode
Posted: Sat Jun 10, 2023 2:53 am
Hiho!
I want to download movies from different stations in ASync Mode (To be able to continue with other things).
To use the async-mode, DownloadFile() needs to get a handle (called obj in the example).
The Files should be directly stored onto Disk, So I added the option "File="data:test.mp4".
Using hURL v1.x, everything worked fine.
Now with hURL V2 the memory consumptions seems to grow accordingly to the download. Seems, as if the handle includes the downloaded data.
What am I doing wrong here??
I want to download movies from different stations in ASync Mode (To be able to continue with other things).
To use the async-mode, DownloadFile() needs to get a handle (called obj in the example).
The Files should be directly stored onto Disk, So I added the option "File="data:test.mp4".
Using hURL v1.x, everything worked fine.
Now with hURL V2 the memory consumptions seems to grow accordingly to the download. Seems, as if the handle includes the downloaded data.
Code: Select all
@REQUIRE "hurl"
Starttimer(1)
Function p_debug(msg)
debugprint("Time:",INT(GetTimer(1)/1000),"Percent:",INT(msg.count/msg.total*100),"Speed:",INT(msg.count/gettimer(1)),"Loaded:",msg.count,"Total:",msg.total)
EndFunction
obj=DownLoadFile("https://nrodlzdf-a.akamaihd.net/none/zdf/22/10/221018_2215_sendung_37g/1/221018_2215_sendung_37g_a3a4_3360k_p36v15.mp4",{File="data:test.mp4", Adapter="hurl", Async=1},p_debug)
repeat until ContinueAsyncOperation(obj)=1
What am I doing wrong here??