diff options
author | Saku Ytti <saku@ytti.fi> | 2013-04-29 11:41:39 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2013-04-29 11:41:39 +0300 |
commit | d1a9d0412ab7c1d999598f6c801b1ae0624c4a9b (patch) | |
tree | 23d6e9a3ee6d4e1b177013aa928ac9086648255c /lib/oxidized/input/telnet.rb | |
parent | 7ebf7bee657e518ba4f2bf28febd78b0a189a497 (diff) |
Catch 'Errno::ECONNRESET' in Telnet#cmd
Some devices might throw us out, while we are waiting for command to
compelete
Diffstat (limited to 'lib/oxidized/input/telnet.rb')
-rw-r--r-- | lib/oxidized/input/telnet.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/input/telnet.rb b/lib/oxidized/input/telnet.rb index 09c3df9..0ec08f9 100644 --- a/lib/oxidized/input/telnet.rb +++ b/lib/oxidized/input/telnet.rb @@ -27,7 +27,7 @@ module Oxidized args.merge!({ 'Match' => expect, 'Timeout' => @timeout }) if expect begin @telnet.cmd args - rescue Timeout::Error + rescue Timeout::Error, Errno::ECONNRESET return false end end |