From d577fea4bb655763252812f924be1a297c1e74fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 16 Oct 2026 15:40:29 +0200 Subject: [PATCH] test: tolerate curl send errors when the listener closes during shutdown --- tests/shutdown_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/shutdown_test.sh b/tests/shutdown_test.sh index 24260c5556..bd8f247567 100755 --- a/tests/shutdown_test.sh +++ b/tests/shutdown_test.sh @@ -38,8 +38,8 @@ request() { case "$error" in 0) printf '%s' "$status" ;; 7) printf 'closed' ;; - # An accepted connection can close while HTTP shutdown begins. - 52 | 56) printf 'closing' ;; + # HTTP shutdown can drop a connection before curl sends (55), before any reply (52) or mid-read (56). + 52 | 55 | 56) printf 'closing' ;; *) printf 'error-%s' "$error" ;; esac }