3 Mar 05:59
[937] trunk/samples/hello_world_for_rails2/vendor/plugins/ap4r/lib/ async_helper.rb: Added fault tolerance on connection to ap4r servers.
Revision: 937
Author: kato-k
Date: 2009-03-02 23:59:08 -0500 (Mon, 02 Mar 2009)
Log Message:
-----------
Added fault tolerance on connection to ap4r servers.
Modified Paths:
--------------
trunk/samples/hello_world_for_rails2/vendor/plugins/ap4r/lib/async_helper.rb
Modified: trunk/samples/hello_world_for_rails2/vendor/plugins/ap4r/lib/async_helper.rb
===================================================================
--- trunk/samples/hello_world_for_rails2/vendor/plugins/ap4r/lib/async_helper.rb 2009-02-20
11:17:12 UTC (rev 936)
+++ trunk/samples/hello_world_for_rails2/vendor/plugins/ap4r/lib/async_helper.rb 2009-03-03
04:59:08 UTC (rev 937)
@@ -20,12 +20,28 @@
DRUBY_PORT = ENV['AP4R_DRUBY_PORT'] || '6438'
DRUBY_URI = "druby://#{DRUBY_HOST}:#{DRUBY_PORT}"
+ @@druby_uris = [DRUBY_URI]
+ @@druby_uri_options = { :rotate => false, :fail_over => false, :fail_reuse => false }
+ @@druby_uri_retry_count = 0
+
@@default_dispatch_mode = :HTTP
@@default_rm_options = { :delivery => :once, :dispatch_mode => @@default_dispatch_mode }
@@default_queue_prefix = "queue."
(Continue reading)
RSS Feed