Hi guys I am using Juggernaut to broker a multi party chat service. For some reason it seems to hang often. I have isolated the hangs to the following line of code:
def isloggedin? return !Juggernaut.show_client(self.id).nil? end where self.id is the id of the user that needs to be pushed to. When it hangs like this I have to restart the Juggernaut server and then the web server seems to snap out of it. But then the Firefox clients crash and the other browsers also throw up an error. (The latter is not my problem for the moment) I have searched the web far and wide and cannot find any reference to other people experiencing similar problems, so I must assume its something to do with my setup (running Ruby 1.8.6 and Rails 2.3.4 in development mode on Windows XP with Mongrel as webserver and sqlite as database) Would it be possible to somehow trap this error - ie give it .5 seconds to respond and if it doesnt to break out? At first I thought a simple loop with a sleep instruction would do the trick. But obviously not - the show_client function hangs altogether, so the interpreter never even gets to the sleep instruction. Please assist! I am at a loss. -- 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.

