diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2016-10-03 21:03:27 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2016-10-03 21:03:27 +0300 |
| commit | e19481f35e45dc6a0016dc11b63095d88137b719 (patch) | |
| tree | b91e922ed0accf6ce1efe7c836c88a0701220e03 /src/imap/ngx_imap_proxy_handler.c | |
| parent | 200c7493aef7818bf43443d68380bf10548d8094 (diff) | |
| download | nginx-e19481f35e45dc6a0016dc11b63095d88137b719.tar.gz nginx-e19481f35e45dc6a0016dc11b63095d88137b719.tar.bz2 | |
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.
Diffstat (limited to 'src/imap/ngx_imap_proxy_handler.c')
0 files changed, 0 insertions, 0 deletions
