Only one connection from user

Hi. I've got a problem with delivering messages to users who have multiple connections.
For example: i am connected with standard jabber client centericq. I will try to connect with jwchat, which is successfully too.

with help of ejabberctl i get output like:
me@jabber.internal.domain/jwchat
me@jabber.internal.domain/centericq

If i close jwchat window, i will stay online with jwchat resource. And here is a problem. Messages are not delivered to resource 'centericq', but to jwchat ( and client is already canceled so i dont get the messages).

How can i set on server, that there will be permited only one connection from user? The first resource will be disconected and the next one will became active as the only one .

Thanks.

The problem is on http-poll

I suspect the problem is not on being connected with several resources, but that ejabberd isn't aware JWChat disconnected because of HTTP-Poll. When JWChat uses HTTP-Bind, ejabberd knows immediately that JWChat was disconnected.

The problem solved

Thanks a lot for quick reply. It really works.

Syndicate content