]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: test-smtp-payload - Set all timeouts to CLIENT_PROGRESS_TIMEOUT.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 1 Jun 2021 22:40:19 +0000 (00:40 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 5 Jul 2021 13:08:45 +0000 (13:08 +0000)
This prevents connect and idle timeouts from triggering earlier than the
progress timeout.

src/lib-smtp/test-smtp-payload.c

index efc3ae531f1a1823db15941b30868f905354d469..7363736cc4197a8a042f9fff28babafe40ee7800 100644 (file)
@@ -963,7 +963,8 @@ test_run_scenarios(
        smtp_server_set.protocol = protocol;
        smtp_server_set.capabilities = capabilities;
        smtp_server_set.hostname = "localhost";
-       smtp_server_set.max_client_idle_time_msecs = 10*000;
+       smtp_server_set.max_client_idle_time_msecs =
+               CLIENT_PROGRESS_TIMEOUT*1000;
        smtp_server_set.max_pipelined_commands = 1;
        smtp_server_set.auth_optional = TRUE;
        smtp_server_set.ssl = &ssl_server_set;
@@ -973,6 +974,8 @@ test_run_scenarios(
        i_zero(&smtp_client_set);
        smtp_client_set.my_hostname = "localhost";
        smtp_client_set.temp_path_prefix = "/tmp";
+       smtp_client_set.command_timeout_msecs = CLIENT_PROGRESS_TIMEOUT*1000;
+       smtp_client_set.connect_timeout_msecs = CLIENT_PROGRESS_TIMEOUT*1000;
        smtp_client_set.ssl = &ssl_client_set;
        smtp_client_set.debug = debug;