YUKI Hiroshi
null+****@clear*****
Tue Apr 14 20:17:48 JST 2015
YUKI Hiroshi 2015-04-14 20:17:48 +0900 (Tue, 14 Apr 2015) New Revision: f3b471c47d3605e3033fd307afc3d01a4c6b4048 https://github.com/droonga/droonga-client-ruby/commit/f3b471c47d3605e3033fd307afc3d01a4c6b4048 Message: Fix wrong use of timeout Modified files: lib/droonga/client/connection/droonga-protocol/thread.rb Modified: lib/droonga/client/connection/droonga-protocol/thread.rb (+0 -9) =================================================================== --- lib/droonga/client/connection/droonga-protocol/thread.rb 2015-04-14 20:12:55 +0900 (2b2369f) +++ lib/droonga/client/connection/droonga-protocol/thread.rb 2015-04-14 20:17:48 +0900 (c8b1780) @@ -82,7 +82,6 @@ module Droonga receive_options = { :timeout => timeout_seconds, } - start = Time.new sync = block.nil? if sync Enumerator.new do |yielder| @@ -90,10 +89,6 @@ module Droonga receiver.receive(receive_options) do |object| yielder << object end - if timeout_seconds and - Time.new - start > timeout_seconds - break - end end receiver.close end @@ -102,10 +97,6 @@ module Droonga begin loop do receiver.receive(receive_options, &block) - if timeout_seconds and - Time.new - start > timeout_seconds - break - end end ensure receiver.close -------------- next part -------------- HTML����������������������������...Télécharger