Hi,

I recently spoke with Jamis on the IRC to report a problem I had with
a "download" call over a gateway connection.

Looks like the problem comes from line 351 of lib/net/scp.rb

channel.on_close { |ch|
  raise Net::SCP::Error, "SCP did not finish successfully
(#{ch[:exit]})" if ch[:exit] != 0
}

ch[:exit] never seems to get set, so the raise occurs.

I tried commenting out this line, and everything works great.
The download is done as expected.

I tried a "download" via :scp on a single server without a gateway,
but did not reproduce the bug. And I could not find in net-scp code
where else channel[:exit] was set.

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to