#1957 ConverseJS makes server stuck trying to fetch messages
Reporter
TheCat
Owner
Nobody
Created
Updated
Stars
★ (1)
Tags
Priority-Medium
Status-New
Type-Defect
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.
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.