From fadd17a4d44fdd469a9ccfd910c55d44af8dafe6 Mon Sep 17 00:00:00 2001 From: k2safe Date: Tue, 22 Sep 2026 16:03:37 +0800 Subject: [PATCH] test: drain proxy timeout before shutdown --- scripts/verifyProxy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/verifyProxy.py b/scripts/verifyProxy.py index 6c70caf..7e76b7c 100644 --- a/scripts/verifyProxy.py +++ b/scripts/verifyProxy.py @@ -233,6 +233,11 @@ def main() -> None: ) from error verify_keep_alive(edge_port) verify_timeout(edge_port) + # The upstream /slow handler intentionally runs for two seconds. + # Nginx has already returned 504, but it may keep the upstream + # socket around while native drains that request. Let it finish + # before checking a clean listener shutdown. + time.sleep(2.2) print("PASS Nginx TLS proxy, Keep-Alive and upstream timeout", flush=True) assert backend.stdin is not None