Skip to content

Commit

Permalink
Merge pull request #107 from Shopify/rescue-econnrefused
Browse files Browse the repository at this point in the history
Rescue Errno::ECONNREFUSED
  • Loading branch information
fw42 committed Jul 26, 2017
2 parents 2553caa + f7f5c52 commit af5c79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/statsd/instrument/backends/udp_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def write_packet(command)
# part of a signal handler, locks cannot be acquired, so we do our best
# to try and send the command without a lock.
socket.send(command, 0) > 0
rescue SocketError, IOError, SystemCallError => e
rescue SocketError, IOError, SystemCallError, Errno::ECONNREFUSED => e
StatsD.logger.error "[StatsD] #{e.class.name}: #{e.message}"
end

Expand Down

0 comments on commit af5c79b

Please sign in to comment.