How to improve connection speed in openfire v5.1.1

Hi Guys

Base Info:

  1. Openfire server version: v5.1.1
  2. Smack version: v4.4.6

this is connection code to openfire server(using 5223 port, and secured is true):

The connection failed because the time limit was exceeded.

When I set SmackConfiguration.setDefaultReplyTimeout(30000) and observe what happens.

It takes about five seconds or more to receive the message.

Is this correct?

Before updating Openfire, I was using v4.7.5(Smack version is also same(v4.4.6)) and this problem didn’t occur; connection establishment was completed within milliseconds(0.3s-0.8s).

*There are no changes to our network environment or settings.

*The Openfire service is in the cloud, and the above tests were conducted using my local machine environment, which has no complicated network settings!

How to improve connection speed?

Best regards.

Jack Hu