]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-http: test-http-client-errors - Allow more relaxed timeouts for connect retry...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 22 Sep 2021 14:36:27 +0000 (17:36 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 22 Sep 2021 14:36:27 +0000 (17:36 +0300)
commited1264368a5435c3080871380156978a8951fe26
treea99b37f9f95bd9c4ced7a9bc0582ab7577e5f1be
parent4f605823a49180f888c3adb72d6f9f4144293449
lib-http: test-http-client-errors - Allow more relaxed timeouts for connect retry tests

With max_connect_attempts=3 the connects come at (0ms, 100ms, 300ms).
Before the 3rd attempt a timeout at 250ms must have triggered, so there
was only 50ms time for it to trigger. This wasn't always enough when
running with valgrind on an overloaded system. Solve this by increasing
max_connect_attempts=4 so the 4th attempt comes at 700ms, giving the
timeout 450ms to trigger.
src/lib-http/test-http-client-errors.c