MONGOC_STREAM_SHOULD_RETRY(3)
π MONGOC_STREAM_SHOULD_RETRY(3) β¨
okay so bestie, welcome to the libmongoc manual β this one's a tiny little function but it's honestly kind of the main character of your error-handling arc π«Ά. It's called mongoc_stream_should_retry, and no cap, once you get what it does you'll be checking it everywhere. iykyk π
πΈ SYNOPSIS πΈ
bool
mongoc_stream_should_retry (mongoc_stream_t *stream);
literally that's it. one argument in, one bool out. slay. β¨
π PARAMETERS π
streamβ amongoc_stream_t. that's the stream you're vibe-checking, bestie. that's the whole parameter list, we're done here π
β RETURNS β
It hands you back True if either of these two iconic situations is happening:
- the stream is open and it's hit a retryable network error like
EAGAINπ β like, not fatal, just "girl give me a sec" - a TLS exchange is in progress and it needs more data before it can keep going π¦
so basically: True = go ahead and try again. it's giving "not now but soon" energy π₯
ngl, this is the check you want before you go retrying stuff β don't just assume, ask the stream how it's feeling first π
π AUTHOR π
MongoDB, Inc β periodt. π
π COPYRIGHT π
2009-present, MongoDB, Inc. β iconic, decades-spanning, we love to see it π
and that's the whole page bestie, you ate that πβ¨ ok bye, this was libmongoc version 2.5.6, dated Oct 09, 2026 β mwah ππ§
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms