forward-rbase 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rbase/client.rb +2 -2
- metadata +2 -2
data/lib/rbase/client.rb
CHANGED
@@ -5,8 +5,8 @@ module Rbase
|
|
5
5
|
yield client if block_given?
|
6
6
|
end
|
7
7
|
|
8
|
-
def initialize(server, port=9090)
|
9
|
-
socket = Thrift::Socket.new(server, port.to_s)
|
8
|
+
def initialize(server, port=9090, timeout=60)
|
9
|
+
socket = Thrift::Socket.new(server, port.to_s, timeout)
|
10
10
|
transport = Thrift::BufferedTransport.new(socket)
|
11
11
|
transport.open
|
12
12
|
|