Permalink
Browse files

added EINVAL which is raised by OSX when socket is closed

  • Loading branch information...
1 parent f756bb3 commit 5dc8c683a990ebcebdb2349336532ce54484bd03 @next2you next2you committed Jun 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/amqp/server.rb
View
@@ -88,7 +88,7 @@ def buffer
def send_command(cmd, *args)
begin
socket.__send__(cmd, *args)
- rescue Errno::EPIPE, IOError, Errno::ECONNRESET => e
+ rescue Errno::EPIPE, IOError, Errno::ECONNRESET, Errno::EINVAL => e
raise ServerDown, e.message
end
end

0 comments on commit 5dc8c68

Please sign in to comment.