ejabberd - Comments for "Increase maximum resource count per user ?" https://www.ejabberd.im/node/3808 en First of all, thanks for your https://www.ejabberd.im/node/3808#comment-55154 <p>First of all, thanks for your help.</p> <p>I found out that the issue is not a faulty ejabberd configuration but something else. I don't understand at all why this is happening:<br /> I am using a shell script called "sendxmpp" to connect to my ejabberd server. The first five connections work just fine, but the sixth doesn't work anymore when I don't escape "#" or "!" in my password. I don't know why, but with escaping those characters it works fine up until the max_user_sessions setting.</p> <p>Thanks again, have a nice day.</p> Thu, 14 Jan 2010 09:42:20 +0000 level20peon comment 55154 at https://www.ejabberd.im Are you sure option is changed? What happens when 6th connects? https://www.ejabberd.im/node/3808#comment-55134 <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>Thanks for your input. Unfortunately the entry is set to its default value of '10'. Even raising it to '20' made no difference.</p></div> <p>I've tested ejabberd 2.0.5 compiled from source code. I can login more than 5 sessions. Then in the WebAdmin page <noindex><a href="http://localhost:5280/admin/server/localhost/user/badlop/" title="http://localhost:5280/admin/server/localhost/user/badlop/" rel="nofollow" >http://localhost:5280/admin/server/localhost/user/badlop/</a></noindex> I can see:</p> <pre>Recursos conectados: * work1 (127.0.0.1:53723) * work2 (127.0.0.1:53718) * work3 (127.0.0.1:53720) * work4 (127.0.0.1:53719) * work5 (127.0.0.1:53721) * work6 (127.0.0.1:37036) </pre><p> What happens exactly, when you connect the sixth client?</p> <p>When I am connected with 10 clients and then connect with another one to resource work11, the oldest session receives this XMPP stanza and the session is closed:</p> <pre> &lt;stream:error&gt; &lt;conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/&gt; &lt;text xml:lang='es' xmlns='urn:ietf:params:xml:ns:xmpp-streams'&gt;Reemplazado por una nueva conexión &lt;/stream:error&gt; </pre><p> Are you sure the option is 10, or 20? You can go to WebAdmin <noindex><a href="http://localhost:5280/admin/access/" title="http://localhost:5280/admin/access/" rel="nofollow" >http://localhost:5280/admin/access/</a></noindex> and you should see among many other Access rules this one:</p> <pre>max_user_sessions [{10,all}]</pre> Mon, 11 Jan 2010 18:29:12 +0000 mfoss comment 55134 at https://www.ejabberd.im Thanks for your input. https://www.ejabberd.im/node/3808#comment-55102 <p>Thanks for your input. Unfortunately the entry is set to its default value of '10'. Even raising it to '20' made no difference.</p> Fri, 08 Jan 2010 23:31:26 +0000 level20peon comment 55102 at https://www.ejabberd.im Yes, check the option https://www.ejabberd.im/node/3808#comment-55077 <p>Yes, check the option max_user_sessions in the ejabberd Guide:<br /> <noindex><a href="http://svn.process-one.net/ejabberd/tags/ejabberd-2.0.5/doc/guide.html#configmaxsessions" title="http://svn.process-one.net/ejabberd/tags/ejabberd-2.0.5/doc/guide.html#configmaxsessions" rel="nofollow" >http://svn.process-one.net/ejabberd/tags/ejabberd-2.0.5/doc/guide.html#c...</a></noindex></p> <p>Maybe in your ejabberd.cfg it was by default 5. Edit the config file and restart ejabberd.</p> Sun, 27 Dec 2009 23:07:53 +0000 mfoss comment 55077 at https://www.ejabberd.im