3 ms·
I'm ignorant to exactly how Glacier's API works, but what's stopping you from reading bytes from the socket at any rate you want (for a single file)? e.g. what
by gamegoblin 10y ago
I'm ignorant to exactly how Glacier's API works, but what's stopping you from reading bytes from the socket at any rate you want (for a single file)? e.g. what is stopping me from doing 128KB/s with this code:
byte[] buffer = new byte[128*1024];
while(socket.read(buffer) != -1) {
// do something with buffer here
Thread.sleep(1000);
}
- Gigablah 10y agoThe rate pertains to Glacier's "retrieval" of the file and making it available for download, not the reading of the file from your end. (If you end up never downloading the file, you still get charged)