RUBY-436 Handle IRB::Abort Exception
This commit is contained in:
parent
7384585d98
commit
d176c2a0f3
|
@ -137,9 +137,14 @@ module Mongo
|
|||
|
||||
send_message_on_socket(packed_message, sock)
|
||||
result = receive(sock, request_id, exhaust)
|
||||
rescue SystemStackError, NoMemoryError, SystemCallError, IRB::Abort => ex
|
||||
rescue SystemStackError, NoMemoryError, SystemCallError => ex
|
||||
close
|
||||
raise ex
|
||||
rescue Exception => ex
|
||||
if defined?(IRB)
|
||||
close if ex.class == IRB::Abort
|
||||
end
|
||||
raise ex
|
||||
ensure
|
||||
if should_checkin
|
||||
if command || read == :primary
|
||||
|
|
Loading…
Reference in New Issue