libssh2_session_get_timeout(3)
β¨ 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 π
libssh2_session_set_timeout(3)β the other half of this duo, go set that thing π
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 ππ
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms