]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-server-connection - Use connection settings for command pipeline limit.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 24 Jun 2020 09:15:55 +0000 (11:15 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 7 Oct 2020 11:45:27 +0000 (11:45 +0000)
It used the top-level server settings before.

src/lib-smtp/smtp-server-connection.c

index 3a81195d06a15bfaccd489c1bf8088dcc7768769..66587e72f4909b536505454d00ede4fd6d8dfd51 100644 (file)
@@ -61,11 +61,11 @@ static bool
 smtp_server_connection_check_pipeline(struct smtp_server_connection *conn)
 {
        if (conn->command_queue_count >
-           conn->server->set.max_pipelined_commands) {
+           conn->set.max_pipelined_commands) {
                e_debug(conn->event, "Command pipeline is full "
                        "(pipelined commands %u > limit %u)",
                        conn->command_queue_count,
-                       conn->server->set.max_pipelined_commands);
+                       conn->set.max_pipelined_commands);
                return FALSE;
        }
        return TRUE;