Question about authentication and the time before server actually responds with roster data

Right now my client authenticates immediately with the host, but once it requests user's roster data it takes around 20 seconds before the Ejabberd server responds. During this wait time, the user cannot send or receive messages. Also if any messages are sent during this period, and the client happens to disconnects before the server responds, the messages do not deliver, even if successfully written out to the underlying socket buffer. If anyone has any idea how to speed up this connection or if this wait time is not normal, please let me know, thanks!

This wait time is not normal.

This wait time is not normal. Maybe the roster is stored in a too busy database machine, or it is too big (several thousands of items).

Syndicate content