Thanks for the insight. Yes, it is a dev. environment with a single mongrel server (if thats what you mean by single instance). But, doesn't mongrel handle HTTP requests in a multi-threaded manner?
I tried to move this code to my controllers and had another problem: http://www.ruby-forum.com/topic/185134 Any clues how does the rails handle model-controller code? Any suggestions on placement of code to get optimum performance from rails framework in addition/parallel to MVC arch. style? - CS. Jeff Burlysystems wrote: > Are you seeing this behavior while running your rails app under a > typical development environment setup, ie a single mongrel instance of > the dev env running? If so, then the blocking/hanging is due to the > fact that your archiving meth is trying to make an httpclient call > (using wget) back into your single-thread/-process rails app which can > only handle one request at a time. > > If this is the case, you'll need to setup/run a second instance of > your dev env (or launch your archiving meth via script/runner, or > setup your dev env to run under mod_rails/passenger, or ...) > specifically to handle your archiving httpclient requests. > > Jeff > > On Apr 21, 5:29�am, Carlos Santana <[email protected]> -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

