Changeset 7134:d87f29d764ce in nginx


Ignore:
Timestamp:
10/16/17 10:13:25 (16 hours ago)
Author:
Sergey Kandaurov <pluknet@…>
Branch:
default
Tags:
tip
Message:

Postpone filter: handled ngx_http_postpone_filter_add() failures.

In particular, if ngx_http_postpone_filter_add() fails in ngx_chain_add_copy(),
the output chain of the postponed request was left in an invalid state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/http/ngx_http_postpone_filter_module.c

    r5218 r7134  
    6464
    6565        if (in) {
    66             ngx_http_postpone_filter_add(r, in);
     66            if (ngx_http_postpone_filter_add(r, in) != NGX_OK) {
     67                return NGX_ERROR;
     68            }
     69
    6770            return NGX_OK;
    6871        }
     
    8790
    8891    if (in) {
    89         ngx_http_postpone_filter_add(r, in);
     92        if (ngx_http_postpone_filter_add(r, in) != NGX_OK) {
     93            return NGX_ERROR;
     94        }
    9095    }
    9196
Note: See TracChangeset for help on using the changeset viewer.