This commit is contained in:
Chizhong Jin 2025-02-05 11:25:09 -05:00 committed by GitHub
commit 8d2d44ec47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2739,7 +2739,7 @@ ngx_http_terminate_request(ngx_http_request_t *r, ngx_int_t rc)
"http terminate cleanup count:%d blk:%d",
mr->count, mr->blocked);
if (mr->write_event_handler) {
if (!mr->connection->error && mr->write_event_handler) {
if (mr->blocked) {
r = r->connection->data;