php / pecl-networking-ssh2

Bindings for the libssh2 library
http://pecl.php.net/package/ssh2
Other
51 stars 61 forks source link

Cannot specify timeout #62

Open kaliberx opened 1 year ago

kaliberx commented 1 year ago

I'm using ssh2 extension. Unfortunately sometimes ssh2_sftp function waits forever because there is no way to specify timeout.

Please consider adding parameter timeout to ssh2_connect function (as in ftp_connect) or implement method ssh2_settimeout. I think it can be easily implemented because libssh supports libssh2_session_set_timeout().

FoxKeys commented 10 months ago

Same problem. ssh2_sftp() hungs forever...