]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
pytest: increase server KeepAliveTimeout
authorStefan Eissing <stefan@eissing.org>
Sat, 19 Jul 2025 11:37:54 +0000 (13:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 20 Jul 2025 21:15:11 +0000 (23:15 +0200)
When CI is not able to give clients enough cpu, the default Apache
KeepAliveTimeout of 5 seconds may trigger and cause tests to fail.

Increase the timeout to 30 seconds for reliability.

Ref: #17963
Closes #17968

tests/http/testenv/httpd.py

index f9ab554ceaf155fef2fe62cf9dd702732e568256..d9f535dd22d2fe9db34b0dc973b343148dc3f8b0 100644 (file)
@@ -310,6 +310,7 @@ class Httpd:
                 f'LogLevel {self._get_log_level()}',
                 'StartServers 4',
                 'ReadBufferSize 16000',
+                'KeepAliveTimeout 30',  # CI may exceed the default of 5 sec
                 'H2MinWorkers 16',
                 'H2MaxWorkers 256',
                 f'TypesConfig "{self._conf_dir}/mime.types',