RPMA_CONN_CFG_SET_TIMEOUT(3)
π rpma_conn_cfg_set_timeout β set connection establishment timeout π
okay bestie, welcome to the RPMA Programmer's Manual π«Ά this is the page for rpma_conn_cfg_set_timeout(3) and it's genuinely such a lil cutie. it does one (1) thing and it does it well. no cap.
β¨ SYNOPSIS β¨
#include <librpma.h>
struct rpma_conn_cfg;
int rpma_conn_cfg_set_timeout(struct rpma_conn_cfg *cfg, int timeout_ms);
like yes, that's the whole thing. short king behavior π
πΈ DESCRIPTION πΈ
so rpma_conn_cfg_set_timeout() sets the connection establishment timeout. that's it, that's the job, and honestly? she's thriving π
the way this works is: you hand her a cfg and a timeout_ms, and she writes that timeout into your config so future-you knows how long to wait around for a connection to show up before giving up on it.
β οΈ real talk tho: if you never call this function, the timeout just has the default value of1000β and that default was set for you byrpma_conn_cfg_new(3). so if you're sitting there like "wait why is it 1000??" β bestie, it's because you didn't call this. mystery solved πβ¨
π RETURN VALUE π
0β slay! success, we ate, no crumbs π- negative error code β uh oh, something went wrong (see below, she's dramatic but she's fine)
π ERRORS π
rpma_conn_cfg_set_timeout() can fail with the following error:
RPMA_E_INVALβcfgisNULLortimeout_ms < 0. yeahhh so you either passed her nothing at all, or you tried to give her a negative timeout and she was like "girl. no. π«" β negative time is not a vibe, not even a little bit, not even a tiny amount. time moves forward only. periodt.
π₯ SEE ALSO π₯
rpma_conn_cfg_new(3)β the one who sets your default1000, iconic behaviorrpma_conn_cfg_get_timeout(3)β for when you wanna read it back and go "oh okay that's what I set" πlibrpma(7)β the big picture, the lore, the origin story- <https://pmem.io/rpma/> β go click it, it's giving documentation main character energy β
π¦ cute sign-off π¦
this page lives in the RPMA manual and it's dated 01 April 2024 π so yeah, that's the whole thing β go set your timeouts, be responsible, and remember: NULL is not a personality trait, bestie. bye!! πβ¨π§π
π¦ where this page comes from
- ubuntu noble: librpma-dev 1.3.0-2build2 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms