tests/httpd: adjust ReadBufferSize for better performance
- list httpd and caddy versions in scorecard run Closes #14039
This commit is contained in:
parent
cdbfad96ff
commit
5b614224e4
@ -600,6 +600,7 @@ def main():
|
|||||||
caddy = None
|
caddy = None
|
||||||
try:
|
try:
|
||||||
if test_httpd:
|
if test_httpd:
|
||||||
|
print(f'httpd: {env.httpd_version()}, http:{env.http_port} https:{env.https_port}')
|
||||||
httpd = Httpd(env=env)
|
httpd = Httpd(env=env)
|
||||||
assert httpd.exists(), \
|
assert httpd.exists(), \
|
||||||
f'httpd not found: {env.httpd}'
|
f'httpd not found: {env.httpd}'
|
||||||
@ -610,6 +611,7 @@ def main():
|
|||||||
nghttpx.clear_logs()
|
nghttpx.clear_logs()
|
||||||
assert nghttpx.start()
|
assert nghttpx.start()
|
||||||
if test_caddy and env.caddy:
|
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 = Caddy(env=env)
|
||||||
caddy.clear_logs()
|
caddy.clear_logs()
|
||||||
assert caddy.start()
|
assert caddy.start()
|
||||||
|
|||||||
@ -246,6 +246,7 @@ class Httpd:
|
|||||||
f'ErrorLog {self._error_log}',
|
f'ErrorLog {self._error_log}',
|
||||||
f'LogLevel {self._get_log_level()}',
|
f'LogLevel {self._get_log_level()}',
|
||||||
f'StartServers 4',
|
f'StartServers 4',
|
||||||
|
f'ReadBufferSize 16000',
|
||||||
f'H2MinWorkers 16',
|
f'H2MinWorkers 16',
|
||||||
f'H2MaxWorkers 256',
|
f'H2MaxWorkers 256',
|
||||||
f'H2Direct on',
|
f'H2Direct on',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user