diff options
author | Roman Arutyunyan <arut@nginx.com> | 2023-01-05 18:15:46 +0400 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2023-01-05 18:15:46 +0400 |
commit | faa655f211612fcdac938d58095a4ab7f03969a9 (patch) | |
tree | a673a37373a6103485b5c2d24bbf19d4d6554b70 /src/http/v3/ngx_http_v3_request.c | |
parent | d929470685239762330d61a4be0200edc2ad315f (diff) | |
download | nginx-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.c | 2 |
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; } |