Frederick Cheung wrote:
> On Mar 31, 3:41�pm, Danimal <fightonfightw...@gmail.com> wrote:
> 
>> The flip-side may make more sense, while I think of it: spawn a thread
>> to do the FTP connection and have your main thread sleep 30 seconds.
>> Then have the main thread check the status and if need be kill the FTP
>> connection or the child thread altogether.
>>
> which is basically what 
> http://www.ruby-doc.org/stdlib/libdoc/timeout/rdoc/index.html
> does
> 
> Fred

Thanks for all the quick informative responses" I got the Timeout class 
working it appears to solve the problem nicely.

I am doing this task 'outside' my rails app using the "background 
plugin" it seems to be working well so far.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to