powered by Jive Software

MultiUserChatLight.sendMessage hangs while sending messages continuously


Smack 4.3.2, Android 9.

When sending a large number (~50) of messages continuously (in a loop) using MultiUserChatLight.sendMessage, it stops sending after 30 or so (that number varies every time).

This does not happen in a private chat where the sender does not receive a copy of the message as it does in a MUC Light chat. Perhaps the incoming messages have something to do with this behaviour?

Any advice? Many thanks in advance.

Here’s the stack:

wait:-1, Object {java.lang}
parkFor$:2137, Thread {java.lang}
park:358, Unsafe {sun.misc}
park:190, LockSupport {java.util.concurrent.locks}
await:2059, AbstractQueuedSynchronizer$ConditionObject {java.util.concurrent.locks}
put:251, ArrayBlockingQueueWithShutdown {org.jivesoftware.smack.util}
sendStreamElement:1362, XMPPTCPConnection$PacketWriter {org.jivesoftware.smack.tcp}
requestSmAcknowledgementInternal:1701, XMPPTCPConnection {org.jivesoftware.smack.tcp}
sendStanzaInternal:557, XMPPTCPConnection {org.jivesoftware.smack.tcp}
sendStanza:703, AbstractXMPPConnection {org.jivesoftware.smack}
sendMessage:176, MultiUserChatLight {org.jivesoftware.smackx.muclight}

closed #2

This topic was automatically closed 62 days after the last reply. New replies are no longer allowed.