[JDEV] .. double-connect ..

Dennis Noordsij dennis.noordsij at wiral.com
Tue Dec 12 05:57:30 CST 2000


On Tuesday 12 December 2000 13:43, Jens Langner wrote:
> But what happens if the same user tries to connect to the same server with
> the same resource ?? I mean in my case the same user connects with two
> computers with the same resource to the jabber server and the two JabberIM
> clients are playing ping-pong with the online status of the user.
>
> I want to avoid this generally !
>
> Cheers,
>
> Jens

What happens is that the newest login gets preference over the older one, and 
the older gets disconnected. The JabberIM program will try to reconnect, 
thereby kicking out the other one, who will then reconnect and kick out the 
first one. 

To avoid generally .. although it is not really a jabber problem, rather a 
"user" problem :-) is to change the sourcecode to reject NEW logins with an 
existing resource instead of closing the OLD one. 

Should be quite trivial to do, also in jsm/sessions.c (I think :)

Regards,
Dennis




More information about the JDev mailing list