#1860 Returns internal-server-error when too many pubsub items are published

Reporter Jonas Schäfer
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Status-New
  • Priority-Medium
  • Type-Defect
  1. Jonas Schäfer on

    What steps will reproduce the problem? 1. Configure internal storage for pubsub. Set `pubsub_max_items` on your pubsub server to e.g. 16777216. 2. Create a pubsub node with max_items set to 16777216. 3. Publish 10001 items. What is the expected output? - all items are published correctly, - or prosody refuses the pubsub_max_items setting - or prosody refuses to set max_items of the pubsub node to that number What do you see instead? <internal-server-error/> when publishing the 10001th item. What version of the product are you using? On what operating system? Prosody version trunk nightly build 1897 (2024-04-27, ae65f199f408) on Linux Please provide any additional information below.

  2. Jonas Schäfer on

    https://hg.prosody.im/trunk/file/tip/plugins/mod_storage_internal.lua#l83 This is where the limit triggers, and the pubsub module doesn't seem to be handling that well. Increasing "storage_archive_item_limit" to 16777216 fixes publishing of items.

New comment

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