This commit is contained in:
Chizhong Jin 2025-12-07 22:38:20 -08:00 committed by GitHub
commit d4ddf590cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2853,7 +2853,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;