Skip to content

Commit

Permalink
Catch Errno::ECONNRESET
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed May 24, 2017
1 parent 132f603 commit 4fd8e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/async/dns/resolver.rb
Expand Up @@ -157,7 +157,7 @@ def dispatch_request(message, task: Async::Task.current)
@logger.warn "[#{message.id}] Invalid response from network: #{$!}!" if @logger
rescue DecodeError
@logger.warn "[#{message.id}] Error while decoding data from network: #{$!}!" if @logger
rescue IOError
rescue IOError, Errno::ECONNRESET
@logger.warn "[#{message.id}] Error while reading from network: #{$!}!" if @logger
rescue EOFError
@logger.warn "[#{message.id}] Could not read complete response from network: #{$!}" if @logger
Expand Down

0 comments on commit 4fd8e46

Please sign in to comment.