We're using this script, minus the authority bits, in production now. In part, because the script refactoring includes some stability repairs I forgot to mention elsewhere in the ticket:
1. Open a new XMPP connection with each forked child during child init. Previously, a single XMPP connection was shared by all forked children, which lead to crossed streams and chaos.
2. Use an auth nonce during login (via oils_header.pl) to avoid colliding logins.
We're using this script, minus the authority bits, in production now. In part, because the script refactoring includes some stability repairs I forgot to mention elsewhere in the ticket:
1. Open a new XMPP connection with each forked child during child init. Previously, a single XMPP connection was shared by all forked children, which lead to crossed streams and chaos.
2. Use an auth nonce during login (via oils_header.pl) to avoid colliding logins.