[JDEV] Strange server behaviour

Gerard BUNEL gerard.bunel at ago.fr
Fri Jun 29 05:20:13 CDT 2001


Rodolphe Duge de Bernonville a écrit :

> Gerard BUNEL a écrit :
> >
> > Hello,
> >
> > I need some help on server side development.
> > I've writen a module in replacement to the standard mod_presence
> > The objective of this module is to route presence messages to a service
> > So I wrote function to route some mesages
> >
> > void route_packet(mapi m) {
> >   xmlnode node = xmlnode_dup(m->packet->x);
> >   node = xmlnode_wrap(node, "route");
> >   xmlnode_put_attrib(node, "to", packet_to);
> >   deliver(dpacket_new(node), m->si->i);
> > }
> >
> > The result is that sometimes the message is correctly routed, sometimes
> > it is not at all and sometimes it
> > seems to hang up partially the server (other messages are not sent)
>
> where do you call your function in mod_presence ?
> do you mean the callback in mod_presence are not called anymore ?
> which sort of packet do you want to route to your external component ?

It's not mod_presence but a replacement for it.
I try to route presence packet and I use globaly  the same scheme than in
mod_presence
It can be in either in es_IN, es_OUT or es_DELIVER callbacks

I've tried using js_deliver instead of deliver, but the result seems to be
the same.

I notably route presence in es_OUT callback when it is a presence to a
conference
and in this case, the server is seems completely freezed.

>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev

--
gerard.bunel at ago.fr - Atlantide - http://www.ago.fr/atlantide/
Technopole Brest Iroise BP 80802 - Site du Vernis - 29608 Brest cedex -
France
Tel. : +33 2 98 05 43 21 - Fax. : +33 2 98 05 20 34
e-mail: atlantide-brest at ago.fr
Centre Affaires Oberthur - 74D, rue de Paris -  35700 Rennes - France
Tel. : +33 2 99 84 15 84 - Fax : +33 2 99 84 15 85
e-mail: atlantide-rennes at ago.fr





More information about the JDev mailing list