Permalink
Browse files

Make writes that fail because of network/socket issues to trigger rec…

…onnection/recovery
  • Loading branch information...
1 parent 17083c4 commit a58d085efa577aa71d0c633c3a2562bd8ac0e678 Michael Klishin committed Jan 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bunny/transport.rb
@@ -70,7 +70,7 @@ def write(*args)
else
@socket.write(*args) if open?
end
- rescue Errno::EPIPE, Errno::EAGAIN, Bunny::ClientTimeout, IOError => e
+ rescue Errno::EPIPE, Errno::EAGAIN, Bunny::ClientTimeout, Bunny::ConnectionError, IOError => e
close
@session.handle_network_failure(e)

0 comments on commit a58d085

Please sign in to comment.