Hi all,
This has been resolved by patching Net:SSH to marshal all connections
(somehow) - I'll spare the list the implementation details, but assure you
all that this should be fixed in Net:SSH 2.0.14 which is due for imminent
release.

-- Lee Hambley

Twitter: @leehambley
Blog: http://lee.hambley.name/
Working with Rails: http://is.gd/1s5W1


2009/8/12 Rafael G. <[email protected]>

>
> Before I didn't understand you. Tomorrow I'll check your fix
> The other patch worked for me but I want study it.
>
>
> Billy wrote:
> > 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).
> > >
> >
> >
>
>
> --
> Rafa
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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