Method: Net::SSH::ForwardedBufferedIo#fill
- Defined in:
- lib/net/ssh/buffered_io.rb
#fill(n = 8192) ⇒ Object
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/net/ssh/buffered_io.rb', line 169 def fill(n = 8192) begin super(n) 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 |