diff --git a/bench/bench.sh b/bench/bench.sh index 0f4d2da..b64ee60 100644 --- a/bench/bench.sh +++ b/bench/bench.sh @@ -16,14 +16,14 @@ echo "----------------------------" echo "Benchmark on rpxy" #wrk -t8 -c100 -d30s http://127.0.0.1:8080/index.html -rewrk -c 512 -t 4 -d 10s -h http://localhost:8080 --pct +rewrk -c 256 -t 4 -d 10s -h http://localhost:8080 --pct echo "----------------------------" echo "Benchmark on nginx" # wrk -t8 -c100 -d30s http://127.0.0.1:8090/index.html -rewrk -c 512 -t 4 -d 10s -h http://localhost:8090 --pct +rewrk -c 256 -t 4 -d 10s -h http://localhost:8090 --pct echo "----------------------------" echo "Benchmark on caddy" # wrk -t8 -c100 -d30s http://127.0.0.1:8100/index.html -rewrk -c 512 -t 4 -d 10s -h http://localhost:8100 --pct +rewrk -c 256 -t 4 -d 10s -h http://localhost:8100 --pct diff --git a/src/constants.rs b/src/constants.rs index a8ff9ed..1861150 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -10,4 +10,4 @@ pub const MAX_CONCURRENT_STREAMS: u32 = 32; pub const CERTS_WATCH_DELAY_SECS: u32 = 30; #[cfg(feature = "h3")] -pub const H3_ALT_SVC_MAX_AGE: u32 = 120; +pub const H3_ALT_SVC_MAX_AGE: u32 = 3600;