php / pecl-networking-ssh2

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

Fix for ssh2_exec(): Unable to request a channel from remote host #5

Closed mindnever closed 9 years ago

mindnever commented 10 years ago

We need to set session to blocking mode before calling libssh2_channel_open_session().

This fixes long standing issue of ssh2_exec() failing with 'Unable to request a channel from remote host' when invoked for second time using same session. - https://bugs.php.net/bug.php?id=58893 ssh2_shell() has same construct, so same approach is applied there too.

langemeijer commented 9 years ago

Thank you for you contribution, sorry this took so long.