em-ssh
em-ssh copied to clipboard
EventMachine compatible Net::SSH
Getting an unexpected local return error on Line 71 of session.rb.. happens after leaving an ssh connection open overnight i come back to find the app crashed with that message.
Not sure whats happening yet, but my block inside EM::Ssh::Shell.new never gets evaluated, and no errors are raised I can simulate this easily by connecting 50 times concurrently
``` /home/deploy/myapp/shared/bundle/ruby/1.9.1/gems/net-ssh-2.6.2/lib/net/ssh/connection/channel.rb:524:in `do_open_failed': open failed (1) (Net::SSH::ChannelOpenFailed) from /home/deploy/myapp/shared/bundle/ruby/1.9.1/gems/net-ssh-2.6.2/lib/net/ssh/connection/session.rb:541:in `channel_open_failure' from /home/deploy/myapp/shared/bundle/ruby/1.9.1/gems/em-ssh-0.4.3/lib/em-ssh/session.rb:87:in `channel_open_failure' from /home/deploy/myapp/shared/bundle/ruby/1.9.1/gems/em-ssh-0.4.3/lib/em-ssh/session.rb:67:in `block in register_callbacks' from /home/deploy/myapp/shared/bundle/ruby/1.9.1/gems/em-ssh-0.4.3/lib/em-ssh/callbacks.rb:81:in `call' from /home/deploy/myapp/shared/bundle/ruby/1.9.1/gems/em-ssh-0.4.3/lib/em-ssh/callbacks.rb:81:in `call' from /home/deploy/myapp/shared/bundle/ruby/1.9.1/gems/em-ssh-0.4.3/lib/em-ssh/callbacks.rb:37:in `block in fire' from...
If connection #unbind gets called due to a network failure, while there are open channels, their on_close (or other callbacks) do not appear to be invoked. I am experiencing this...
Options added to shell: :port (default 22) :auth_methods (default ['publickey', 'password']) :verbose (default :warn)