libssh2_session_get_timeout(3)

πŸ“¦
version 1.11.1 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ libssh2_session_get_timeout(3) ✨

okay bestie, so this one is from the libssh2 manual and it's literally the chillest little getter function ever πŸ’–


🌸 NAME 🌸

libssh2_session_get_timeout β€” get the timeout for blocking functions πŸ•βœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <libssh2.h>

long
libssh2_session_get_timeout(LIBSSH2_SESSION *session);

πŸ’… DESCRIPTION πŸ’…

So basically, this function returns the timeout β€” in milliseconds β€” for how long a blocking libssh2 function call is allowed to wait around before it's like "okay this is taking forever" and decides the whole situation is an error, returning LIBSSH2_ERROR_TIMEOUT. β°πŸ’€

And like, out of the box? By default libssh2 has no timeout (zero) for blocking functions. So it'll just… vibe. Forever. Waiting. 🫢 No cap.


πŸ’– RETURN VALUE πŸ’–

The value of the timeout setting. That's it. That's the tea. πŸ“


⭐ AVAILABILITY ⭐

Added in 1.2.9 β€” so she's been iconic for a minute πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€


and that's the whole page, bestie!! this cutie dropped as part of libssh2 on 4 May 2011, so go forth and check your timeouts πŸŽ€βœ¨ iykyk πŸŒˆπŸ’–