lib/instrumental/agent.rb in instrumental_agent-0.13.3 vs lib/instrumental/agent.rb in instrumental_agent-0.13.4
- old
+ new
@@ -456,10 +456,10 @@
rescue Exception => err
allow_reconnect = @allow_reconnect
case err
when EOFError
# nop
- when Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::EADDRINUSE
+ when Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::EADDRINUSE, Timeout::Error
# If the connection has been refused by Instrumental
# or we cannot reach the server
# or the connection state of this socket is in a race
logger.error "unable to connect to Instrumental, hanging up with #{@queue.size} messages remaining"
allow_reconnect = false