I am facing a problem. Here is the scenario to recreate the problem:
Connect to gtalk server with smack.
Power off the router/modem or unplug the telephone line from the router/modem. This is not same as disabling the connection from control panel or unplugging the network cable.
See that smack client is not aware of the lost connection. Try to send a message with the client. It says that the message sent successfully, and in the smack debugger, message packet is seen as sent.
After some time, smack understands that the connection is lost and tries to reconnect. After that, try to send another message. This time packet is not sent, which is correct.
The problem is, at step 3, some messages are lost. Do you have any idea how to prevent this? Thanks for your help.
P.S.: I do the same test for Google’s gtalk software. It also has the same problem.Do they use smack?