tests/httpd: adjust ReadBufferSize for better performance
- list httpd and caddy versions in scorecard run Closes #14039
This commit is contained in:
Родитель
cdbfad96ff
Коммит
5b614224e4
|
@ -600,6 +600,7 @@ def main():
|
|||
caddy = None
|
||||
try:
|
||||
if test_httpd:
|
||||
print(f'httpd: {env.httpd_version()}, http:{env.http_port} https:{env.https_port}')
|
||||
httpd = Httpd(env=env)
|
||||
assert httpd.exists(), \
|
||||
f'httpd not found: {env.httpd}'
|
||||
|
@ -610,6 +611,7 @@ def main():
|
|||
nghttpx.clear_logs()
|
||||
assert nghttpx.start()
|
||||
if test_caddy and env.caddy:
|
||||
print(f'Caddy: {env.caddy_version()}, http:{env.caddy_http_port} https:{env.caddy_https_port}')
|
||||
caddy = Caddy(env=env)
|
||||
caddy.clear_logs()
|
||||
assert caddy.start()
|
||||
|
|
|
@ -246,6 +246,7 @@ class Httpd:
|
|||
f'ErrorLog {self._error_log}',
|
||||
f'LogLevel {self._get_log_level()}',
|
||||
f'StartServers 4',
|
||||
f'ReadBufferSize 16000',
|
||||
f'H2MinWorkers 16',
|
||||
f'H2MaxWorkers 256',
|
||||
f'H2Direct on',
|
||||
|
|
Загрузка…
Ссылка в новой задаче