fix for ssh forwarding not handling the eof packet type

unstable
alhazred 2011-12-20 19:42:54 +13:00
parent b58097a2a7
commit 3b44aa9e39
1 changed files with 4 additions and 0 deletions

View File

@ -214,6 +214,10 @@ module Net; module SSH; module Service
session.stop_listening_to(ch[:socket])
end
channel.on_eof do |ch|
ch.close
end
channel.on_process do |ch|
if ch[:socket].closed?
ch.info { "#{type} forwarded connection closed" }