Message Sending Using Smack BoshConnection is very slow

I am using smack 4.1.3 library …

when i used normal TCP connection message sending and receiving is very fast.

for our requirement we started using Bosh Connection, where sending message is very slow…

we tried same server with gajim client its worked fine…

in bosh connection connecting to server or file transfer is normal as tcp…

but coming to messaging sending,it is very slow as it is taking 1min to reach the server…

on checking jbosh we came to know that he allowed to send max requests are 2…

if send more than two messages the thread is hanging…

even though first two message executing properly,those are not reaching server quickly…

I had some insight of ur question are you getting warning msg did you see your log and saw iq packets i mean response from server

After some analysis, it seems jbosh client is waiting for empty body response from server and not initiating message send request. As per BOSH documenting, the xmpp sever may not send empty body response immediately, in that case client should initiate a new socket. Which is not happening with jbosh. So is this a limitation or going to implement in future…???