aboutsummaryrefslogtreecommitdiffstats
path: root/Changelog
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-11-11 00:39:09 +0100
committerGuilhem Moulin <guilhem@fripost.org>2019-11-13 06:23:57 +0100
commit0a2558aabfefd6800fe74c24e5aff2b0d47cc5e2 (patch)
treec8887efc8526b25683924a90b757655cd3fb1772 /Changelog
parentccf90182d04c064bd9327c5e7067ed4b9dc32f41 (diff)
Avoid sending large UID EXPUNGE|FETCH|STORE and APPEND commands.
UID EXPUNGE|FETCH|STORE commands are now split into multiple (sequential) commands when their set representation exceeds 4096 bytes in size. Without splitting logic set representations could grow arbitrarily large, and exceed the server's maximum command size. This adds roundtrips which could be eliminated by pipelining, but it's unlikely to make any difference in typical synchronization work. While set representations seem to remain small in practice, they might grow significantly if many non-contiguous UIDs were flagged and/or expunged, and later synchronized at once. Furthermore, for MULTIAPPEND-capable servers, the number of messages is limited to 128 per APPEND command (also subject to a combined literal size of 1MiB like before). These numbers are currently not configurable. They're intentionally lower than Dovecot's default maximum command size (64k) in order to avoid a deadlock situation after sending 8k-long commands under COMPRESS=DEFLATE: https://dovecot.org/pipermail/dovecot/2019-November/117522.html .
Diffstat (limited to 'Changelog')
-rw-r--r--Changelog11
1 files changed, 11 insertions, 0 deletions
diff --git a/Changelog b/Changelog
index 763a7a1..f0c9e50 100644
--- a/Changelog
+++ b/Changelog
@@ -94,6 +94,17 @@ interimap (0.5) upstream;
FETCH response was received.
- libinterimap: push_flag_updates(): don't ignores received updates (by
another client) to a superset of the desigred flag list.
+ - libinterimap: avoid sending large UID EXPUNGE|FETCH|STORE commands as
+ they might exceed the server's max acceptable command size; these
+ commands are now split into multiple (sequential) commands when their
+ set representation exceeds 4096 bytes in size. Performance could be
+ improved by pipelining but given the scope of this software
+ (synchronization) it's unlikely to make any difference in practice.
+ This is a also a workaround for a bug in Dovecot 2.3.4:
+ https://dovecot.org/pipermail/dovecot/2019-November/117522.html
+ - interimap: for the reason explained above, limit number of messages
+ to 128 per APPEND command (only on servers advertizing MULTIAPPEND,
+ for other servers the number remains 1).
-- Guilhem Moulin <guilhem@fripost.org> Fri, 10 May 2019 00:58:14 +0200