changeset 20322:e1184fa94529

dict: Increased max number of pipelined requests from 5 to 1000. The client is supposed to be the one throttling the requests. We mainly want to avoid accidental abuses. Using 1000 is hopefully "large enough" without being "too large".
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Mon, 13 Jun 2016 20:16:14 +0300
parents 74e0c3802cc0
children 07f21d0fb517
files src/dict/dict-connection.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dict/dict-connection.c	Mon Jun 13 17:59:01 2016 +0300
+++ b/src/dict/dict-connection.c	Mon Jun 13 20:16:14 2016 +0300
@@ -14,7 +14,7 @@
 
 #include <unistd.h>
 
-#define DICT_CONN_MAX_PENDING_COMMANDS 5
+#define DICT_CONN_MAX_PENDING_COMMANDS 1000
 
 static struct dict_connection *dict_connections;
 static unsigned int dict_connections_count = 0;