lib/aerospike/cluster/connection.rb in aerospike-1.0.3 vs lib/aerospike/cluster/connection.rb in aerospike-1.0.4

- old
+ new

@@ -42,9 +42,12 @@ # Block until the socket is ready, then try again IO.select(nil, [socket], nil, timeout.to_f) begin socket.connect_nonblock(@sockaddr) rescue Errno::EISCONN + rescue => e + socket.close + raise e end socket end end