Browse files

made timeout in client optional, bumped version

  • Loading branch information...
1 parent f50719d commit 907d557618ed58ba6390c66500b6699181ad9d62 @bmuller bmuller committed Oct 31, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/ganapati/client.rb
  2. +1 −1 lib/ganapati/version.rb
View
3 lib/ganapati/client.rb
@@ -7,7 +7,8 @@ def initialize(server, port, timeout=60)
@transport.open
protocol = Thrift::BinaryProtocol.new(@transport)
@client = ThriftHadoopFileSystem::Client.new(protocol)
- @client.setInactivityTimeoutPeriod(timeout)
+ # some versions of ruby + thrift cause an error if the following is called
+ @client.setInactivityTimeoutPeriod(timeout) unless timeout.nil?
end
def close
View
2 lib/ganapati/version.rb
@@ -1,3 +1,3 @@
module Ganapati
- VERSION = "0.0.6"
+ VERSION = "0.0.7"
end

0 comments on commit 907d557

Please sign in to comment.