pytest: increase server KeepAliveTimeout

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
This commit is contained in:
Stefan Eissing 2025-07-19 13:37:54 +02:00 committed by Daniel Stenberg
parent bed83d9d33
commit 53e5cdc47b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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',