When you‘re low on RAM, I recommend using a recent #curl for your internet transfers.

It can shuffle gigabytes back and forth using a few MB of your memory (mostly used by openssl).

If you develop an application, you can use #libcurl to gain its benefits.

Need to shape your traffic? For example bc you run a streaming service? #libcurl does that for you for all HTTP versions.

@icing Do unstable internet connections work well in this case ?

@adingbatponder the shaping works by configuring "n bytes per second" and #libcurl tries to never exceed that.

If by "unstable" you mean it might become lower for a while, the next #libcurl release will continue to keep the rate and not go above due to accumulated "credit".

@icing Interesting. I was wondering about temporary loss of connection. E.g. mobile connections, streaming...

@adingbatponder A connection loss would, be default, fail the transfer. There are "retry" options, or ways to resume a download from an offset.

Follow

@icing @adingbatponder does it hold the output pipe open while retry, assuming the server supports resume / partial byte range transfer?

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.