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.