[JDEV] jabberd patch

Wes Morgan wesm at libretech.org
Mon Feb 24 16:10:17 CST 2003


Attached is a patch file for jsm/authreg.c that enables one to alter the 
behavior of jabberd 1.4 when someone logs in with a username/resource 
combination that already has an active session. Currently the existing 
session is kicked and the new one logs in. With this patch, one can add the 
<first-session-priority/> tag to the jsm section of jabber.xml and the 
behavior is reversed. That is, the first session is allowed to continue and 
the second one is not allowed to log in. I would appreciate comments on this 
implementation. It may well be that there are better ways to do this. One bug 
that seems to exist in this version is that the second client is not informed 
of the login failure, but instead just sits there until it times out. I'm not 
quite sure how to correct that. Thanks.

Wes Morgan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: authreg.c.patch
Type: text/x-diff
Size: 1260 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20030224/d839c84d/attachment-0002.patch>


More information about the JDev mailing list