From 41acbf096ffb523bca8f4d249653109921f87e6a Mon Sep 17 00:00:00 2001 From: Jack Dockerty Date: Mon, 11 Dec 2023 12:20:29 +0000 Subject: [PATCH] cleanup, readme, and clippy fixes --- Makefile | 1 + README.md | 22 +++++++++++----------- tests/tls.rs | 2 -- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index d48a0ed..a363186 100644 --- a/Makefile +++ b/Makefile @@ -9,5 +9,6 @@ local_cert_trust: mkcert -install @echo "Ensure you run 'make local_cert_untrust' once you are done testing." +# Untrust localhost from cert store once testing is finished. local_cert_untrust: mkcert -uninstall diff --git a/README.md b/README.md index faf8c59..e5c93dc 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,10 @@ gruglb --config path/to/config.yml ## Features -- Round-robin load balancing of HTTP/TCP connections. -- Health checks for HTTP/TCP targets. +- Round-robin load balancing of HTTP/HTTPS/TCP connections. +- Health checks for HTTP/HTTPS/TCP targets. - Graceful termination. +- TLS termination. ## How does it work? @@ -129,18 +130,17 @@ Bombarding http://127.0.0.1:8080 for 10s using 125 connection(s) [========================================================================================] 10s Done! Statistics Avg Stdev Max - Reqs/sec 40954.38 2857.90 45273.78 - Latency 3.05ms 485.51us 36.43ms + Reqs/sec 42558.30 3130.17 47446.16 + Latency 2.93ms 427.72us 29.29ms Latency Distribution - 50% 2.97ms - 75% 3.32ms - 90% 3.75ms - 95% 4.13ms - 99% 5.28ms + 50% 2.85ms + 75% 3.17ms + 90% 3.61ms + 95% 4.01ms + 99% 5.22ms HTTP codes: - 1xx - 0, 2xx - 408841, 3xx - 0, 4xx - 0, 5xx - 0 + 1xx - 0, 2xx - 425267, 3xx - 0, 4xx - 0, 5xx - 0 others - 0 - Throughput: 48.42MB/s ``` diff --git a/tests/tls.rs b/tests/tls.rs index 989254e..efafdcb 100644 --- a/tests/tls.rs +++ b/tests/tls.rs @@ -4,8 +4,6 @@ use std::collections::HashSet; use std::process::Command; use std::sync::{Arc, Mutex}; use std::thread; -use tokio::fs::File; -use tokio::io::AsyncReadExt; use tokio_util::sync::CancellationToken; mod common;