aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2022-01-12 11:57:46 +0300
committerRoman Arutyunyan <arut@nginx.com>2022-01-12 11:57:46 +0300
commit38cfe35779e4a8a6288d61bdf4a2e892dc0ce046 (patch)
tree2d6add44ccb8784fbbf268c3d17888cc3c18895e /src
parent5ab94d4219fb2119770d024731a53dba6871b25c (diff)
downloadnginx-38cfe35779e4a8a6288d61bdf4a2e892dc0ce046.tar.gz
nginx-38cfe35779e4a8a6288d61bdf4a2e892dc0ce046.zip
HTTP/3: set c->error on read error in ngx_http_test_reading().
Similar to other error/eof cases.
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_request.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index fd3e880f8..bc6c077db 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -2971,6 +2971,7 @@ ngx_http_test_reading(ngx_http_request_t *r)
if (c->quic) {
if (rev->error) {
+ c->error = 1;
err = 0;
goto closed;
}