From 8b769c373d076ea0a678680ef187f83cd0e7d19d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 20 Oct 2021 17:31:24 +0200 Subject: mod_pubsub: Prevent max_items from being set to zero Disable persistence instead if no items should be persisted. XEP-0060 is not entirely clear on what either of those option really mean. --- spec/scansion/pubsub_config.scs | 8 ++++++-- spec/scansion/pubsub_max_items.scs | 4 +++- spec/scansion/pubsub_multi_items.scs | 4 +++- spec/scansion/pubsub_preconditions.scs | 8 ++++++-- 4 files changed, 18 insertions(+), 6 deletions(-) (limited to 'spec/scansion') diff --git a/spec/scansion/pubsub_config.scs b/spec/scansion/pubsub_config.scs index 28505f28..de3f47da 100644 --- a/spec/scansion/pubsub_config.scs +++ b/spec/scansion/pubsub_config.scs @@ -48,7 +48,9 @@ Romeo receives: - + + + 1 @@ -136,7 +138,9 @@ Romeo sends: - + + + 1 diff --git a/spec/scansion/pubsub_max_items.scs b/spec/scansion/pubsub_max_items.scs index dafeb317..ae106edd 100644 --- a/spec/scansion/pubsub_max_items.scs +++ b/spec/scansion/pubsub_max_items.scs @@ -43,7 +43,9 @@ Alice receives: - + + + 20 diff --git a/spec/scansion/pubsub_multi_items.scs b/spec/scansion/pubsub_multi_items.scs index d4f2e01b..d8a9536a 100644 --- a/spec/scansion/pubsub_multi_items.scs +++ b/spec/scansion/pubsub_multi_items.scs @@ -43,7 +43,9 @@ Alice receives: - + + + 20 diff --git a/spec/scansion/pubsub_preconditions.scs b/spec/scansion/pubsub_preconditions.scs index 744070db..bcf83219 100644 --- a/spec/scansion/pubsub_preconditions.scs +++ b/spec/scansion/pubsub_preconditions.scs @@ -47,7 +47,9 @@ Romeo receives: - + + + 1 @@ -135,7 +137,9 @@ Romeo sends: - + + + 1 -- cgit v1.2.3