#1957 ConverseJS makes server stuck trying to fetch messages

Reporter TheCat
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Priority-Medium
  • Status-NeedInfo
  • Type-Defect
  1. TheCat on

    What steps will reproduce the problem? 1. Send to offline ConverseJS user many messages, for example 5000. 2. Open ConverseJS client. 3. Server is stuck, while trying to fetch messages. What is the expected output? Normal fetching of last 20 messages. What do you see instead? Nothing. In logs I can see that server is processing all the messages, that needed to be fetched. All other clients won't connect to server. What version of the product are you using? On what operating system? Prosody 13.0.2, CentOS Stream 9 Please provide any additional information below. c2s rate limit is set to 10kb/s. Archive page size is set both in Prosody and mod_conversejs configuration to 20 messages. Storage is set to SQLite3. ConverseJS option "mam_request_all_pages" is implicitly set to false. Using stock ConvereJS client https://chat.conversejs.org/ leads to the same result.

  2. Zash on

    Thanks for the report. Do you have mod_offline enabled? If so, it will send those 5000 messages in one go. This mechanism predates MAM and the client has no control over it.

    Changes
    • tags Status-NeedInfo
  3. TheCat on

    Yes. You are absolutely right, mod_offline caused this behavior. I didn't even think to disable it, even though it's located in "disable modules" scope in default cfg. Thank you very much for your help! Maybe it would be good to add two-three words of caution to this line in default config for newbies like me.

New comment

Not published. Used for spam prevention and optional update notifications.