Project

General

Profile

No response received within reply timeout. Timeout was 15000ms

w xy
Added about 2 months ago

smack connect tigase, when lots of messages was sent, there is a error that no response received within reply timeout. Timeout was 15000ms.

setting timeout
SmackConfiguration.setDefaultReplyTimeout(15000);

how to solve it?


Replies (4)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 2 months ago

I remember a similar issue with Smack library a few years back. The problem happened because of a bug in Smack library design and implementation. The bug caused some kind of race condition and could not correctly receive data sent by the server, if the server responded too quickly.

Unfortunately, I cannot find the old topic with description of the problem but this might give you a hint where to search for a solution.

I suggest you try our JaXMPP library instead, if possible or dig into the Smack library to check if the old bug is fixed yet.

Added by w xy about 2 months ago

OK, i will try to use jaxmpp instead of smack, thanks a lot.

Added by w xy about 2 months ago

I want to push bulletins to everyone. What's a good way to send a lot of messages via jaxmpp?

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 2 months ago

The best way for this would be to use PubSub on the Tigase server. You send 1 message to PubSub and let it distribute it to all subscribers.

    (1-4/4)