Regarding the capistrano parallel server hanging issue (http://
groups.google.com/group/capistrano/browse_thread/thread/
da1174fd125fad0e), I think I may have found a solution. After messing
with the capistrano and net:ssh source for a few hours, I noticed that
pausing slightly between thread creation worked. Only one line is
needed, but I need others to check if it works for them.

In the connections.rb file under lib/capistrano/configuration, around
line 190 in the establish_connection_to method, I modified it to read
as follows:

        def establish_connection_to(server, failures=nil)
          current_thread = Thread.current
          sleep 0.1           # This is the line I added
          Thread.new { safely_establish_connection_to(server,
current_thread, failures) }
        end

Please try out this fix and let me know if it works for anyone else in
a multi-server environment. Try with default_run_options[:max_hosts] =
1 (limiting max hosts to only one server running at a time) as well as
default_run_options[:max_hosts] = nil (no host limit, parallel
running).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to