rethinkdb 1.12.0.1 → 1.12.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/net.rb +12 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fe537734bd0c2f1ad88fddf9b1d8204f526e2aa
|
4
|
+
data.tar.gz: 0eeff69befb30b5ca9d1ab97274a78668bd252e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e6749992400f655ab567c1d9e705ef1deee584561e76197e03ba65b694eeba21d1ed7bac2ec82c7ecdd89a6b38af9f341f7be92457f8c82c0bdf84c018cce2b
|
7
|
+
data.tar.gz: 6e3a0605724f1e36f1160c0c26b1f76bf5cb452d7c7dd5cb0f25fa4364818c3707e55d7ee6350f25035a8233f2761d90e8d076efece7c078b0b52dca4fc0d211
|
data/lib/net.rb
CHANGED
@@ -247,6 +247,8 @@ module RethinkDB
|
|
247
247
|
opts[:noreply_wait] = true if not opts.keys.include?(:noreply_wait)
|
248
248
|
|
249
249
|
self.noreply_wait() if opts[:noreply_wait]
|
250
|
+
|
251
|
+
stop_listener
|
250
252
|
@socket.close if @socket
|
251
253
|
@socket = TCPSocket.open(@host, @port)
|
252
254
|
@waiters = {}
|
@@ -254,6 +256,7 @@ module RethinkDB
|
|
254
256
|
@mutex = Mutex.new
|
255
257
|
@conn_id += 1
|
256
258
|
start_listener
|
259
|
+
|
257
260
|
self
|
258
261
|
end
|
259
262
|
|
@@ -287,6 +290,14 @@ module RethinkDB
|
|
287
290
|
raise RqlRuntimeError, "No last connection. Use RethinkDB::Connection.new."
|
288
291
|
end
|
289
292
|
|
293
|
+
def stop_listener
|
294
|
+
if @listener
|
295
|
+
@listener.terminate
|
296
|
+
@listener.join
|
297
|
+
@listener = nil
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
290
301
|
def start_listener
|
291
302
|
class << @socket
|
292
303
|
def maybe_timeout(sec=nil, &b)
|
@@ -314,7 +325,7 @@ module RethinkDB
|
|
314
325
|
raise RqlRuntimeError,"Server dropped connection with message: \"#{response}\""
|
315
326
|
end
|
316
327
|
|
317
|
-
|
328
|
+
stop_listener if @listener
|
318
329
|
@listener = Thread.new {
|
319
330
|
loop {
|
320
331
|
begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rethinkdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.0.
|
4
|
+
version: 1.12.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RethinkDB Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -60,11 +60,11 @@ extra_rdoc_files: []
|
|
60
60
|
files:
|
61
61
|
- lib/exc.rb
|
62
62
|
- lib/ql2.pb.rb
|
63
|
+
- lib/func.rb
|
63
64
|
- lib/rethinkdb.rb
|
64
65
|
- lib/rpp.rb
|
65
|
-
- lib/net.rb
|
66
66
|
- lib/shim.rb
|
67
|
-
- lib/
|
67
|
+
- lib/net.rb
|
68
68
|
homepage: http://rethinkdb.com
|
69
69
|
licenses:
|
70
70
|
- Apache-2
|