[JDEV] Jabber Presence response

Richard Dobson richard at dobson-i.net
Fri Oct 18 08:59:06 CDT 2002


Yes shouldnt be opening and closing connections lots as that will flood the
jabber network with presence packets, server admins wont be very happy about
that and neither will the persons contacts, very bad way of doing it, the
only possible way is to use a proxy like this person suggests that actually
keeps the connection to the server and so wont flood the network.

----- Original Message -----
From: "raditha dissanayake" <jabber at raditha.com>
To: <jdev at jabber.org>
Sent: Saturday, October 19, 2002 3:36 AM
Subject: Re: [JDEV] Jabber Presence response


> Hi,
> mmm bit of a tough one this. What i suggest is you have a proxy in
> between your jabber server and the client. The proxy establishes the
> connection to the jabber server and holds it for some time. If the same
> client attempts to communicate again the same socket can be reused. the
> proxy merely passes the data back and forth between the client and
> jabber server.
>
> hope this helps.
>
>
>
>
> Vimalathithan Krishnan wrote:
>
> > Yes, I need to close the connection, otherwise it blocks the socket
> > till it get response from gateways.
> >
> > also I need the immediate response.
> >
> >
> >
> > --Vimal
> >
> >
> >
> > once you close the connection that signals that you are offline, since
> >
> > there is a time lapse between sending info back and forth between your
> >
> > jabber server and yahoo etc, you may be closing the connection before
> >
> > you get the response that you need.
> >
> > do you really need to open and close this connection in this manner ?
> >
> >
> >
> >
> >
> > Vimalathithan Krishnan wrote:
> >
> >
> >
> >> Hi,
> >
> >>
> >
> >> I_m trying to get presence status of buddies online for a particular
> >
> >> user logged in through Java client.
> >
> >>
> >
> >> This client is different from others, it posts XML request and
> >
> >> receives XML response back immediately and close the connection.
> >
> >>
> >
> >> Buddies with Jabber are sending their presence fine, but buddies
> >
> >> belongs to external IM_s like yahoo, msn, etc., are not returning
> >
> >> presence information
> >
> >>
> >
> >> regardless of the presence type sent.
> >
> >>
> >
> >> Does anyone have solution to this?.
> >
> >>
> >
> >> Thanks,
> >
> >>
> >
> >> Vimal
> >
> >>
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > jdev mailing list
> >
> > jdev at jabber.org
> >
> > http://mailman.jabber.org/listinfo/jdev
> >
> >
> >
> >
> >
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>




More information about the JDev mailing list