Openfire not connecting to android client app,after change on server setting like enable the chat history

I need some help to sort out connection problem with openfire server, initially it was connected to my android client properly but after i change the some setting, on server at chat archive history to enable , after that it is giving error on connection “failed because java.net.SocketTimeoutException”

Does the problem go away after you disable the server-sided message archiving again?

If that’s the case, then the server might be not powerful enough to process the request for the chat archive in the time that the client allows for it. I would consider this a bug in the client, as it should expect such a request to take a long time (it shouldn’t time out).