mirror of
https://github.com/libssh2/libssh2.git
synced 2025-10-31 23:30:25 +03:00
adds a timeout to blocking calls
Fixes bug #160 as per Daniel's suggestion Adds libssh2_session_set_timeout() and libssh2_session_get_timeout()
This commit is contained in:
committed by
Daniel Stenberg
parent
e652b4c7b8
commit
c5ec167881
@@ -559,6 +559,9 @@ struct _LIBSSH2_SESSION
|
||||
/* this is set to TRUE if a blocking API behavior is requested */
|
||||
int api_block_mode;
|
||||
|
||||
/* Timeout used when blocking API behavior is active */
|
||||
long api_timeout;
|
||||
|
||||
/* Server's public key */
|
||||
const LIBSSH2_HOSTKEY_METHOD *hostkey;
|
||||
void *server_hostkey_abstract;
|
||||
|
||||
Reference in New Issue
Block a user