[Groonga-commit] droonga/droonga-client-ruby at 5641dd1 [master] Timeout thread receiver with 10sec

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Tue Apr 14 20:40:21 JST 2015


YUKI Hiroshi	2015-04-14 20:40:21 +0900 (Tue, 14 Apr 2015)

  New Revision: 5641dd122adf6e8d83abdc222cc8be883e4ebb2b
  https://github.com/droonga/droonga-client-ruby/commit/5641dd122adf6e8d83abdc222cc8be883e4ebb2b

  Message:
    Timeout thread receiver with 10sec

  Modified files:
    lib/droonga/client/connection/droonga-protocol/thread.rb

  Modified: lib/droonga/client/connection/droonga-protocol/thread.rb (+3 -1)
===================================================================
--- lib/droonga/client/connection/droonga-protocol/thread.rb    2015-04-14 20:36:38 +0900 (3a88a08)
+++ lib/droonga/client/connection/droonga-protocol/thread.rb    2015-04-14 20:40:21 +0900 (7764ea7)
@@ -23,6 +23,8 @@ module Droonga
     module Connection
       class DroongaProtocol
         class Thread
+          DEFAULT_TIMEOUT_SECONDS = 10
+
           class Request
             def initialize(thread)
               @thread = thread
@@ -81,7 +83,7 @@ module Droonga
             subscription_timeout = options[:subscription_timeout]
             start = Time.now
             receive_options = {
-              :timeout => options[:timeout],
+              :timeout => options[:timeout] || DEFAULT_TIMEOUT_SECONDS,
             }
             sync = block.nil?
             if sync
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index