[ejabberd] strange registration error

Konstantin Khomoutov flatworm at users.sourceforge.net
Mon Sep 21 14:47:43 MSD 2009


Badlop wrote:
[...]
> A solution is to use a pseudo-random value: restricted to a small
> amount of values that repeat periodically.
> Quick example in Bash:
>   MINUTE=`date +%M`
>   SECOND=`date +%S`
>   PNUM=$[ $MINUTE + $SECOND ]
>   erl -sname ctl-$PNUM-ejabberd at localhost ...
> 
> I suspect this solution is not yet good enough for inclusion in main
> ejabberd, so suggestions are welcomed.
Just copy the solution from Debian -- it uses nanoseconds to greatly 
lower the chances of a race condition.


More information about the ejabberd mailing list