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 }