Hi everybody, When I use the built-in Mojo web server, I can connect to external servers before app->start and save connections in global variables which are visible for all transaction handlers. But when I use the Hypnotoad, I have, let's say, 5 wjorker processes and I need to initialize connections five times - for each process. Is there some event like "Worker started" or something else which I could use?
I know that in the DB plugin modules this task is accomplished by some helper which connects to the database when the connection is needed. But this scheme does not work if I need a *non-blocking* connection with a following callback, for example to the RabbitMQ server. Please point me to useful direction. Y.Z. -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
