annotate src/core/ngx_rwlock.h @ 6723:ebba2f980489
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.
author |
Roman Arutyunyan <arut@nginx.com> |
date |
Mon, 03 Oct 2016 21:03:27 +0300 |
parents |
682d8222c6b1 |
children |
d1816a2696de |
rev |
line source |
6101
|
1
|
|
2 /*
|
|
3 * Copyright (C) Ruslan Ermilov
|
|
4 * Copyright (C) Nginx, Inc.
|
|
5 */
|
|
6
|
|
7
|
|
8 #ifndef _NGX_RWLOCK_H_INCLUDED_
|
|
9 #define _NGX_RWLOCK_H_INCLUDED_
|
|
10
|
|
11
|
|
12 #include <ngx_config.h>
|
|
13 #include <ngx_core.h>
|
|
14
|
|
15
|
|
16 void ngx_rwlock_wlock(ngx_atomic_t *lock);
|
|
17 void ngx_rwlock_rlock(ngx_atomic_t *lock);
|
|
18 void ngx_rwlock_unlock(ngx_atomic_t *lock);
|
|
19
|
|
20
|
|
21 #endif /* _NGX_RWLOCK_H_INCLUDED_ */
|