Subject: [libssh2] #271: Query on libssh2_session_set_timeout

[libssh2] #271: Query on libssh2_session_set_timeout

From: libssh2 Trac <>
Date: Sat, 07 Sep 2013 06:05:23 -0000

#271: Query on libssh2_session_set_timeout
 Reporter: ganga bhavani | Owner:
     Type: optimization | Status: new
 Priority: low | Milestone: 1.4.3
Component: examples | Version: 1.4.2
 Keywords: | Blocked By:
   Blocks: |

 Can any one help me in understanding what exactly the
 libssh2_session_set_timeout API call will do. As per the libssh2 docs , I
 read it as used to set timeout for blocking functions. But I could able to
 understand whether this will set timeout for only the API above which this
 "libssh2_session_set_timeout " is set or it will set timeout on entire
 session and thus this timeout will be effected to all the API's used with
 that session.

 I am new to libssh2. So please help me in understanding the usage.

 It would be more helpful, if I can get a sample program to use this
 libssh2_session_set_timeout((LIBSSH2_SESSION *session, long timeout); API.

 Thanking you in advance.

Ticket URL: <>
libssh2 <>
C library for writing portable SSH2 clients
Received on 2013-09-07