Skip to content
Browse files

Fixes #10

  • Loading branch information...
1 parent 3eadf6e commit 61185087e6eb1d576ac6fbbce171e34c3f59799f @ioquatix ioquatix committed Mar 14, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/celluloid/dns/handler.rb
View
2 lib/celluloid/dns/handler.rb
@@ -179,6 +179,8 @@ def handle_connection(socket)
@logger.debug "<#{response.id}> Wrote #{length} bytes via TCP..."
rescue EOFError => error
@logger.warn "<> TCP session ended prematurely!"
+ rescue Errno::ECONNRESET => error
+ @logger.warn "<> TCP connection reset by peer!"
rescue DecodeError
@logger.warn "<> Could not decode incoming TCP data!"
ensure

0 comments on commit 6118508

Please sign in to comment.
Something went wrong with that request. Please try again.