Dnia 2014-01-10, piÄ… o godzinie 13:54 +0100, Sylvain Guglielmi pisze:
> My question : Should I add a "timetick" chain to the SM (called every
> second for example), and add my module to this chain (with a rate_t
> check) ? I'm not thrilled by this solution, because for now, I haven't
> changed any code from jabberd2 except from the new module, which make
> it easier to test or get in production. Is there another, better way ?

You could have a separate "cron" component pinging 'sm' in regular
intervals with special route packet, and handle this special packet in
'in-router' chain of your module.

Having that it could even be done not in regular intervals, but
on-demand, when your component gets triggered by web frontend.



Reply via email to