fix for ejabberd queue: clients disconnects when sent many stanzas