From: Roman Arutyunyan Date: Thu, 5 Jan 2023 14:15:46 +0000 (+0400) Subject: HTTP/3: trigger 400 (Bad Request) on stream error while blocked. X-Git-Tag: release-1.25.0~4^2~43 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=faa655f211612fcdac938d58095a4ab7f03969a9;p=nginx.git HTTP/3: trigger 400 (Bad Request) on stream error while blocked. Previously, stream was closed with NGX_HTTP_CLOSE. However, in a similar case when recv() returns eof or error, status 400 is triggered. --- diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c index 8a5aeeb14..e8b84eabd 100644 --- a/src/http/v3/ngx_http_v3_request.c +++ b/src/http/v3/ngx_http_v3_request.c @@ -551,7 +551,7 @@ ngx_http_v3_process_request(ngx_event_t *rev) if (rc == NGX_BUSY) { if (rev->error) { - ngx_http_close_request(r, NGX_HTTP_CLOSE); + ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); break; }