Skip to content

Commit

Permalink
Fix for bug #76582
Browse files Browse the repository at this point in the history
The brigade seems to end up in a messed up state if something fails
in shutdown, so we clean it up.
  • Loading branch information
smalyshev committed Sep 9, 2018
1 parent 1ba3314 commit 23b0577
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sapi/apache2handler/sapi_apache2.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ zend_first_try {
if (!parent_req) {
php_apache_request_dtor(r TSRMLS_CC);
ctx->request_processed = 1;
apr_brigade_cleanup(brigade);
bucket = apr_bucket_eos_create(r->connection->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(brigade, bucket);

Expand Down

0 comments on commit 23b0577

Please sign in to comment.