Method: Net::SSH::ForwardedBufferedIo#send_pending
- Defined in:
- lib/net/ssh/buffered_io.rb
#send_pending ⇒ Object
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/net/ssh/buffered_io.rb', line 185 def send_pending begin super rescue Errno::ECONNRESET => e debug { "connection was reset => shallowing exception:#{e}" } return 0 rescue IOError => e if e. =~ /closed/ then debug { "connection was reset => shallowing exception:#{e}" } return 0 else raise end end end |