From 42021538b2b76f631780a0ada7e88bad1c8f0b32 Mon Sep 17 00:00:00 2001 From: k2safe Date: Tue, 22 Sep 2026 15:23:46 +0800 Subject: [PATCH] fix: report proxy shutdown failures --- scripts/verifyProxy.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/verifyProxy.py b/scripts/verifyProxy.py index 8b3e449..b63dc9c 100644 --- a/scripts/verifyProxy.py +++ b/scripts/verifyProxy.py @@ -226,8 +226,12 @@ def main() -> None: assert backend.stdin is not None backend.stdin.write('"stop"\n') backend.stdin.flush() - if backend.wait(timeout=5) != 0: - raise AssertionError("native server did not shut down cleanly behind Nginx") + exit_code = backend.wait(timeout=5) + if exit_code != 0: + details = backend.stderr.read().strip() if backend.stderr is not None else "" + raise AssertionError( + f"native server did not shut down cleanly behind Nginx: exit={exit_code} {details}" + ) print("PASS native graceful shutdown behind proxy", flush=True) finally: if nginx is not None and nginx.poll() is None: