libssh2_session_set_read_timeout.3 (657B)
1.TH libssh2_session_set_read_timeout 3 "13 Jan 2023" "libssh2" "libssh2" 2.SH NAME 3libssh2_session_set_read_timeout - set timeout for packet read functions 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8void 9libssh2_session_set_read_timeout(LIBSSH2_SESSION *session, long timeout); 10.fi 11.SH DESCRIPTION 12Set the \fBtimeout\fP in seconds for how long libssh2 packet read 13function calls may wait until they consider the situation an error and return 14LIBSSH2_ERROR_TIMEOUT. 15 16By default or if you set the timeout to zero, the timeout will be set to 1760 seconds. 18.SH RETURN VALUE 19Nothing 20.SH AVAILABILITY 21Added in 1.10.1 22.SH SEE ALSO 23.BR libssh2_session_get_read_timeout(3)