CURLOPT_LOW_SPEED_TIME(3)
π CURLOPT_LOW_SPEED_TIME(3) π
okay so bestie, this is a page from the Library Functions Manual and honestly? it's giving "the vibes are too slow, we're leaving" energy. buckle up π
β¨ NAME β¨
CURLOPT_LOW_SPEED_TIME β the low speed limit time period, aka "how long do we tolerate this snail situation before we bail" πβ±οΈ
πΈ SYNOPSIS πΈ
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_LOW_SPEED_TIME,
long speedtime);
π¦ DESCRIPTION π¦
so you pass a long as the parameter, right? and it holds the time in number seconds that the transfer speed should be below the CURLOPT_LOW_SPEED_LIMIT(3) β like, below it the whole time β for the library to consider it "too slow" and just abort. periodt. π
literally it's the patience timer. the "you have this many seconds to stop being slow" timer. no cap. π₯
π DEFAULT π
0, which means disabled β so by default there's no patience limit and the vibe check never fails π
π PROTOCOLS π
this functionality affects all supported protocols β every single one, no exceptions, we love an inclusive icon π
β EXAMPLE β
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
CURLcode result;
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
/* abort if slower than 30 bytes/sec during 60 seconds */
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 60L);
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 30L);
result = curl_easy_perform(curl);
if(CURLE_OPERATION_TIMEDOUT == result) {
printf("Timeout.\n");
}
/* always cleanup */
curl_easy_cleanup(curl);
}
}
see how the comment says it all β abort if slower than 30 bytes/sec during 60 seconds β that's the whole plot bestie π
π AVAILABILITY π
added in curl 7.1 β an oldie but a goodie, she's been here since forever and she ate π«Ά
πΈ RETURN VALUE πΈ
curl_easy_setopt(3) returns a CURLcode indicating success or error β like a little mood ring for your function call π
CURLE_OK(0) means everything was OK β¨- anything non-zero means an error occurred π β go check
libcurl-errors(3)for the tea
π SEE ALSO π
the rest of the squad, fr fr π§
and that's the page!! brought to you by libcurl, dated 2026-10-12, from the one and only CURLOPT_LOW_SPEED_TIME(3) manual page β mwah πβ¨
π¦ where this page comes from
- fedora 44: libcurl-devel 8.18.0-14.fc44 Β· curl
- fedora 44: libcurl-devel 8.18.0-14.fc44 Β· curl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms