CURLMINFO_XFERS_PENDING(3)
π CURLMINFO_XFERS_PENDING(3) π
okay so bestie, welcome to the libcurl corner of the manual pages β this one's from the Library Functions Manual and it's all about counting the little easy handles that are out here waiting their turn π
β¨ NAME β¨
CURLMINFO_XFERS_PENDING β the number of easy handles just vibing in the waiting room, not started yet πͺ
πΈ SYNOPSIS πΈ
#include <curl/curl.h>
CURLMcode curl_multi_get_offt(CURLM *handle, CURLMINFO_XFERS_PENDING,
curl_off_t *pvalue);
like, that's the whole entrance exam bestie π
π¦ DESCRIPTION π¦
So CURLMINFO_XFERS_PENDING is literally the number of current easy handles waiting to start. That's it, that's the tea β
And ngl, a transfer you just added might go pending for a whole bunch of reasons β no cap:
- a connection limit forces it to wait π€ like the bouncer said "not tonight"
- resolving DNS isn't finished yet β still looking up the address π
- it's not clear yet whether an existing, matching connection may allow multiplexing (
HTTP/2orHTTP/3) π like maybe there's room in the group chat, maybe not
π DEFAULT π
n/a
(yeah. nothing. it's giving no default energy π)
π PROTOCOLS π
This functionality affects all supported protocols β every single one, periodt π
π§ EXAMPLE π§
int main(void)
{
CURLM *m = curl_multi_init();
curl_off_t value;
curl_multi_get_offt(m, CURLMINFO_XFERS_PENDING, &value);
}
look at her go π so simple, so iconic β¨
β AVAILABILITY β
Added in curl 8.16.0 β so if you're on anything older, bestie, it's not gonna be there π
π RETURN VALUE π
curl_multi_get_offt(3) returns a CURLMcode indicating success or error β that's the vibe check of the whole call β
CURLM_OK(0) means everything was OK β we ate π- non-zero means an error occurred π see
libcurl-errors(3)for the full breakdown
π₯ SEE ALSO π₯
go read those too, iykyk π«Ά
okay that's the whole page bestie β brought to you by libcurl, dated 2026-10-25, and yes this is the CURLMINFO_XFERS_PENDING(3) girlies' official documentation π mwah, go forth and count those pending transfers πΈβ¨
π¦ where this page comes from
- alpine 3.23: curl-doc 8.23.0-r0 Β· curl
- alpine 3.24: curl-doc 8.23.0-r0 Β· curl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms