Project

General

Profile

Batch register Exception

shir Hu
Added about 4 years ago

When I use InBandRegistrationModule.register() to register batch new accounts, source code as follow:

 for(int i=32443;i<100000;i++){
                reg.register("irene"+i, "10086", "irene"+i+"@shir-pc", new AsyncCallback() {....}
 }

Some accounts regist success , Some return error as follow:

<iq from="shir-pc" type="error" id="iSJ93" xmlns="jabber:client"><query xmlns="jabber:iq:register"><username>irene34850</username><password>10086</password><email>irene34850@shir-pc</email></query><error type="cancel" code="501"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Feature not supported yet.</text></error></iq>

and then occur exception as follow:

 tigase.jaxmpp.core.client.exceptions.JaxmppException: java.net.SocketException: Connection closed by remote host
 at tigase.jaxmpp.j2se.connectors.socket.SocketConnector.send(SocketConnector.java:821)
 at tigase.jaxmpp.j2se.connectors.socket.SocketConnector.terminateStream(SocketConnector.java:1051)
 at tigase.jaxmpp.j2se.connectors.socket.SocketConnector.stop(SocketConnector.java:1011)
 at tigase.jaxmpp.j2se.connectors.socket.SocketConnector.stop(SocketConnector.java:1003)
 at tigase.jaxmpp.j2se.connectors.socket.SocketConnector.onErrorInThread(SocketConnector.java:544)
 at tigase.jaxmpp.j2se.connectors.socket.SocketConnector$Worker.run(SocketConnector.java:295)

Is it wrong to call the register method?


Replies (1)

Added by Wojciech Kapcia TigaseTeam about 4 years ago

There are some throttling mechanisms in Tigase:

Given that you have very high connection rate I would suggest trying to adjust the settings.

    (1-1/1)