Unexpected disconnection


I’m using Smack for a while and a problem came up yesterday. My client unexpectedly disconnected by itself. It sent an unavailable presence, closed the stream, and the connectionClosed() of my connection listener was called, so it really looks like the disconnection was “clean”. The only problem is that it was not expected…

So I was wondering if there is something like a timeout which could have caused this…?