Hi list,
this is my first post and already have an Mojolicious APP running.
First i struggled with a missing IPC mech when using hypnotoad which a 
worked around by using a Storable HASH.
But now i'm not sure how to fix a "problem" which is frankly a design issue.
hypnotoad forks processes which they obviously don't know each other. 
That's clear, but how to overcome some issues regarding the fact of forked 
processes when they must share some data. (like EVLoops).
Problem:
I have a recurring timer which gets removed on some circumstances using 
IOLoop->remove($id).
I store my ids in a storable hash.
So far so good.
But, if i call my stop procedure via remove->($id) and the connection is to 
another process, than, of cource, the IOLoop will not be removed since it 
belong to another $$.
Since there's no manual which describes how to overcome the problem, do i 
have to use threads instead of hypnotoad ?
Perhaps there's a solution i don't know by know via initializing the 
recurring timer in the hypnotoad main, but then i cannot access it via a 
$app, or can i ?
It would be great to have an IPC example which covers all the problems 
caused by preforking.
Right now i will try to move my logic by creating a custom hypnotoad script 
but not sure if this will work out.

Any hints will be greatly appreciated.

Rgds.

Frank

-- 
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 https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to