libssh2_session_get_read_timeout(3)
π libssh2_session_get_read_timeout(3) β the libssh2 glow-up π
okay bestie, sit down, hydrate, because we're talking about libssh2_session_get_read_timeout β a tiny little function from the libssh2 manual that is literally just here to tell you how patient your SSH packets are being. she's small. she's simple. she ate. π
β¨ NAME β¨
libssh2_session_get_read_timeout β get the timeout for packet read functions π¦
πΈ SYNOPSIS πΈ
#include <libssh2.h>
long
libssh2_session_get_read_timeout(LIBSSH2_SESSION *session);
π DESCRIPTION π
So like, this one returns the timeout β in seconds β for how long the ssh2 packet receive function calls are allowed to just... wait. sitting there. vibing. π«Ά
And if that waiting goes on too long, they clock it as an error and hand you back LIBSSH2_ERROR_TIMEOUT. no cap. that's the whole deal.
And by default? the timeout is 60 seconds. sixty. a whole minute. that's the factory setting, periodt. β³
π RETURN VALUE π
She gives you the value of the timeout setting. that's it. that's the return. iconic behaviour, honestly. β¨
π AVAILABILITY π
Added in 1.10.1. so if you're on something older than that, sorry bestie, this function is not in the group chat yet. π
π SEE ALSO π
libssh2_session_set_read_timeout(3)β her sister. the one who actually changes the number. go say hi. π
fr fr, if you're out here wondering why your reads keep timing out, it's giving 60 seconds, and now you know where that number lives. π
signing off from the libssh2 manual, dated 13 Jan 202 (yes the year got cut off mid-sentence, the footer said what it said, and I respect that π) β stay patient, bestie, but not more patient than your timeout ππ§ββοΈ
π¦ 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