{"action":"created","issue":{"url":"https://api.github.com/repos/capistrano/sshkit/issues/150","labels_url":"https://api.github.com/repos/capistrano/sshkit/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/capistrano/sshkit/issues/150/comments","events_url":"https://api.github.com/repos/capistrano/sshkit/issues/150/events","html_url":"https://github.com/capistrano/sshkit/issues/150","id":35434801,"number":150,"title":"NoMethodError: undefined method `recv' for #<IO:fd 47>","user":{"login":"jasonl","id":118146,"avatar_url":"https://avatars.githubusercontent.com/u/118146?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonl","html_url":"https://github.com/jasonl","followers_url":"https://api.github.com/users/jasonl/followers","following_url":"https://api.github.com/users/jasonl/following{/other_user}","gists_url":"https://api.github.com/users/jasonl/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonl/subscriptions","organizations_url":"https://api.github.com/users/jasonl/orgs","repos_url":"https://api.github.com/users/jasonl/repos","events_url":"https://api.github.com/users/jasonl/events{/privacy}","received_events_url":"https://api.github.com/users/jasonl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":44,"created_at":"2014-06-10T23:01:33Z","updated_at":"2015-05-14T15:40:34Z","closed_at":null,"body":"Intermittetently during deploys, the deploy will fail around 50% of the time with the following error - however executing `cap deploy` again (sometimes several attempts will be required) will usually produce a successful deploy.\r\n\r\nEnvironment: Capistrano v3.2.1, SSHKit 1.4.0, net-ssh 2.9.1 under Ruby 2.1.1 deploying a Rails 4.0.2 application.\r\n\r\n```\r\ncap aborted!\r\nNoMethodError: undefined method `recv' for #<IO:fd 47>\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/net-ssh-2.9.1/lib/net/ssh/buffered_io.rb:65:in `fill'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/net-ssh-2.9.1/lib/net/ssh/transport/packet_stream.rb:86:in `next_packet'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/net-ssh-2.9.1/lib/net/ssh/transport/session.rb:178:in `block in poll_message'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/net-ssh-2.9.1/lib/net/ssh/transport/session.rb:173:in `loop'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/net-ssh-2.9.1/lib/net/ssh/transport/session.rb:173:in `poll_message'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/net-ssh-2.9.1/lib/net/ssh/transport/session.rb:210:in `block in wait'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/net-ssh-2.9.1/lib/net/ssh/transport/session.rb:208:in `loop'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/net-ssh-2.9.1/lib/net/ssh/transport/session.rb:208:in `wait'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/net-ssh-2.9.1/lib/net/ssh/transport/session.rb:87:in `initialize'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/net-ssh-2.9.1/lib/net/ssh.rb:202:in `new'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/net-ssh-2.9.1/lib/net/ssh.rb:202:in `start'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/sshkit-1.4.0/lib/sshkit/backends/connection_pool.rb:24:in `create_or_reuse_connection'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/sshkit-1.4.0/lib/sshkit/backends/netssh.rb:173:in `ssh'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/sshkit-1.4.0/lib/sshkit/backends/netssh.rb:126:in `block in _execute'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/sshkit-1.4.0/lib/sshkit/backends/netssh.rb:123:in `tap'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/sshkit-1.4.0/lib/sshkit/backends/netssh.rb:123:in `_execute'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/sshkit-1.4.0/lib/sshkit/backends/netssh.rb:62:in `test'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/capistrano-3.2.1/lib/capistrano/tasks/deploy.rake:216:in `block (3 levels) in <top (required)>'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/sshkit-1.4.0/lib/sshkit/backends/netssh.rb:54:in `instance_exec'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/sshkit-1.4.0/lib/sshkit/backends/netssh.rb:54:in `run'\r\n/Users/jason/.rvm/gems/ruby-2.1.1@avetars/gems/sshkit-1.4.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'\r\nTasks: TOP => deploy:set_previous_revision\r\n(See full trace by running task with --trace)\r\nThe deploy has failed with an error: #<NoMethodError: undefined method `recv' for #<IO:fd 47>>\r\n```"},"comment":{"url":"https://api.github.com/repos/capistrano/sshkit/issues/comments/102077212","html_url":"https://github.com/capistrano/sshkit/issues/150#issuecomment-102077212","issue_url":"https://api.github.com/repos/capistrano/sshkit/issues/150","id":102077212,"user":{"login":"mattbrictson","id":189693,"avatar_url":"https://avatars.githubusercontent.com/u/189693?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbrictson","html_url":"https://github.com/mattbrictson","followers_url":"https://api.github.com/users/mattbrictson/followers","following_url":"https://api.github.com/users/mattbrictson/following{/other_user}","gists_url":"https://api.github.com/users/mattbrictson/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbrictson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbrictson/subscriptions","organizations_url":"https://api.github.com/users/mattbrictson/orgs","repos_url":"https://api.github.com/users/mattbrictson/repos","events_url":"https://api.github.com/users/mattbrictson/events{/privacy}","received_events_url":"https://api.github.com/users/mattbrictson/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T15:40:34Z","updated_at":"2015-05-14T15:40:34Z","body":"Thanks for verifying, @leehambley !\r\n\r\nGood news is that my [patch](https://github.com/net-ssh/net-ssh/pull/240) to net-ssh was merged! If you are affected by the `NoMethodError recv` bug, please try upgrading your net-ssh dependency to `:github => \"net-ssh/net-ssh\", :branch => \"master\"` and test.\r\n"}}