Open livecano opened 2 days ago
From what I can tell, the only relevant changes are to set highWaterMark
and also support calling the function multiple times so you can download the file in chunks.
However, I don't know why either of those matter. The entire signed package should be 4MB or less, which every PI since the first release has enough RAM to do that.
Could you better explain what you're trying to accomplish here, and how your changes mitigate the issue? How would consumers expect to use your proposed changes? (do they need to call the function multiple times?)
I ran into an issue while trying to execute
retrieveSignedPackage
. TheGetToFile
function in rokuDeploy needs further customization to handle devices with low CPU and memory, as is the case with a Raspberry Pi.Below is an optimized version of the
GetToFile
function that "optionally" can also compare a checksum to verify the integrity of the signed package. I tested it on a Pi, and it works as expected.