ejabberd - Comments for "Can not set nick when add roster sometimes" https://www.ejabberd.im/node/24974 en Here is a sequence that https://www.ejabberd.im/node/24974#comment-65927 <p>Here is a sequence that should work fine:</p> <p>1. Send the presence subscribe.<br /> 2. Wait for reply.<br /> 3. Set the name on roster item.</p> <p>We will have a look to see if we can improve to handle this case better as well.</p> Thu, 09 Jul 2015 08:34:28 +0000 mremond comment 65927 at https://www.ejabberd.im Because I send an IQ and https://www.ejabberd.im/node/24974#comment-65912 <p>Because I send an IQ and Presence to server at the same time. I guess the server may handle the two messages in wrong sequence. Maybe the server is handling the IQ writing the nick to database, but not finished. Then handle the Presence while reading the nick from the database, but there is no nick there. Maybe it is not thread-safe? Btw, I am using MySql as the database.</p> Tue, 07 Jul 2015 06:28:03 +0000 xuhai comment 65912 at https://www.ejabberd.im any ideas? https://www.ejabberd.im/node/24974#comment-65909 <p>any ideas?</p> Mon, 06 Jul 2015 15:40:11 +0000 xuhai comment 65909 at https://www.ejabberd.im