Client Unable to Reconnect After Connection Loss in Openfire 4.7.3 on Docker Swarm

we have openfire version 4.7.3 deployed on a docker container using docker swarm, the client side using smack .
suddenly the connection between the client and the server down and when client try to connect to server again the client can not connect, and the openfire logs do not have any exceptions and the session of this client on openfire web is authenticated but have invalid session or connection, because we do not know the cause of this problem we restarted the container and everything become stable again.

the next are the logs appear at the client terminal when try to connect.
No response received within reply timeout. Timeout was 50000ms (~50s). StanzaCollector has been cancelled. Waited for response using: IQReplyFilter: iqAndIdFilter (AndFilter: (OrFilter: (IQTypeFilter: type=error, IQTypeFilter: type=result), StanzaIdFilter: id=B4THG-44)), : fromFilter (OrFilter: (FromMatchesFilter (full): pubsub.(my server domain))).

This doesn’t immediately ring a bell with me. You’re using an old version of Openfire, which has known defects (and a security issue).

Can you test this against the latest release of Openfire please?

I get you but, now we have a product and introduce service so, as you know the upgrade to the latest release and test it would take a time which we do not have now. Therefore, we are seeking help with this issue until we can fully test the latest version. Any assistance or suggestions to resolve this problem would be greatly appreciated.