change hyper-trust-dns to hyper-rustls for httpsconnector

This commit is contained in:
Jun Kurihara 2022-06-28 14:44:51 -04:00
commit 65ade6df8c
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
4 changed files with 27 additions and 12 deletions

View file

@ -2,12 +2,12 @@
echo "----------------------------"
echo "Benchmark on rpxy"
ab -c 32 -n 10000 http://127.0.0.1:8080/ # TODO: localhost = 127.0.0.1を解決できるように決めておかんとだめそう
ab -c 10 -n 10000 http://127.0.0.1:8080/ # TODO: localhost = 127.0.0.1を解決できるように決めておかんとだめそう
echo "----------------------------"
echo "Benchmark on nginx"
ab -c 32 -n 10000 http://127.0.0.1:8090/
ab -c 10 -n 10000 http://127.0.0.1:8090/
echo "----------------------------"
echo "Benchmark on caddy"
ab -c 32 -n 10000 http://127.0.0.1:8100/
ab -c 10 -n 10000 http://127.0.0.1:8100/

View file

@ -14,5 +14,6 @@ server_name = 'localhost'
reverse_proxy = [
# default destination if path is not specified
# Array for load balancing
{ upstream = [{ location = '192.168.100.100', tls = false }] },
{ upstream = [{ location = 'backend-nginx', tls = false }] },
# { upstream = [{ location = '192.168.100.100', tls = false }] },
]