aerospike 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12f8781a2331d9c34b1fc9261727737ebcd1cbba
4
- data.tar.gz: bb73b4c41ad28ddb71e0595a3d5b66c6cb3ca634
3
+ metadata.gz: 9637e861d9aa3e0f0a4f7291877deabb198f7390
4
+ data.tar.gz: cd148fc3d987d2976a1a977b7212c113dd626dc8
5
5
  SHA512:
6
- metadata.gz: 04d7941776ada54e3c14fa305577e657a526b25393c3df206d783759b3e44075563ae8bec0f49b1ecd27b4278a06be685c6e94bccec54ade7b3cdb89ae8023c5
7
- data.tar.gz: 762682e172f8d2ef156130ab6ac56fcf0799e4655ddca309aa7cf3bfcefd687632624cf94f0fa1eb73d794339f6ea868b6c7af7e3a92195ff99fe5f68c198c44
6
+ metadata.gz: 6598cb2fc4b8f5d4cfa1c8f052b1694314d32330bea1a98735310a28be4e71eef1e8f93973e85bdf795ccd734e1d94d44642376dab7fbf0b2bb02a57649af3da
7
+ data.tar.gz: 479790b6ffdbeccc639ebf7b33b84ff120bfb0a9dc8e5ff11b96a2acf26f4dcee4586c542cf3f30de280fc7c8920b31f531eb4fb39afdee2d08ff18a7d32e594
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## March 24 2015 (1.0.4)
2
+
3
+ Hot fix.
4
+
5
+ * **Fixes**:
6
+
7
+ * Close a socket if connection raises an exception to avoid leaking the file descriptor.
8
+
1
9
  ## March 24 2015 (1.0.3)
2
10
 
3
11
  Minor fixes and improvements.
@@ -44,6 +44,9 @@ module Aerospike
44
44
  begin
45
45
  socket.connect_nonblock(@sockaddr)
46
46
  rescue Errno::EISCONN
47
+ rescue => e
48
+ socket.close
49
+ raise e
47
50
  end
48
51
  socket
49
52
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Aerospike
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerospike
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khosrow Afroozeh