aboutsummaryrefslogtreecommitdiff
path: root/src/http/v3/ngx_http_v3_request.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2023-01-05 18:15:46 +0400
committerRoman Arutyunyan <arut@nginx.com>2023-01-05 18:15:46 +0400
commitfaa655f211612fcdac938d58095a4ab7f03969a9 (patch)
treea673a37373a6103485b5c2d24bbf19d4d6554b70 /src/http/v3/ngx_http_v3_request.c
parentd929470685239762330d61a4be0200edc2ad315f (diff)
downloadnginx-faa655f211612fcdac938d58095a4ab7f03969a9.tar.gz
nginx-faa655f211612fcdac938d58095a4ab7f03969a9.zip
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.
Diffstat (limited to 'src/http/v3/ngx_http_v3_request.c')
-rw-r--r--src/http/v3/ngx_http_v3_request.c2
1 files changed, 1 insertions, 1 deletions
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;
}