[Rails] Test ftp connection from web form

2009-04-22 Thread Brian Zzzzzz
Hello, I'm trying to figure out the best method to test an ftp connection from a web form. For example, There is a web form with fields for ftp_host, ftp_username, ftp_password. I created a controller action 'ftp_connection_test' where I grab the current users saved ftp information, try to conn

[Rails] Re: Handle Net::FTP connection timeout

2009-03-31 Thread Brian Zzzzzz
Frederick Cheung wrote: > On Mar 31, 3:41�pm, Danimal 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

[Rails] Handle Net::FTP connection timeout

2009-03-31 Thread Brian Zzzzzz
Hello, This may be more of a Ruby question but I'm using Ruby on Rails so I thought I would post it here. Hopefully someone can provide a suggestion on how to approach this. I have a method that uploads a selection of files via FTP. For each file the method gets the file's associated ftp host/d