Changeset 6887:17000e3ba589 in nginx


Ignore:
Timestamp:
10/03/16 18:03:27 (3 years ago)
Author:
Roman Arutyunyan <arut@…>
Branch:
stable-1.10
Phase:
public
Graft:
6723:ebba2f980489
Message:

Addition filter: set last_in_chain flag when clearing last_buf.

When the last_buf flag is cleared for add_after_body to append more data from a
subrequest, other filters may still have buffered data, which should be flushed
at this point. For example, the sub_filter may have a partial match buffered,
which will only be flushed after the subrequest is done, ending up with
interleaved data in output.

Setting last_in_chain instead of last_buf flushes the data and fixes the order
of output buffers.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.