Update client.rb

Added timeout