Mercurial > hg > nginx
annotate misc/README @ 6423:c5f81dcf97a7
Copy filter: fixed sendfile aio handlers to set ctx->aio.
Sendfile handlers (aio preload and thread handler) are called within
ctx->output_filter() in ngx_output_chain(), and hence ctx->aio cannot
be set directly in ngx_output_chain(). Meanwhile, it must be set to
make sure loop within ngx_output_chain() will be properly terminated.
There are no known cases that trigger the problem, though in theory
something like aio + sub filter (something that needs body in memory,
and can also free some memory buffers) + sendfile can result in
"task already active" and "second aio post" alerts.
The fix is to set ctx->aio in ngx_http_copy_aio_sendfile_preload()
and ngx_http_copy_thread_handler().
For consistency, ctx->aio is no longer set explicitly in
ngx_output_chain_copy_buf(), as it's now done in
ngx_http_copy_thread_handler().
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 03 Mar 2016 21:14:19 +0300 |
parents | 001beb963d86 |
children | 985b0bda403c |
rev | line source |
---|---|
681 | 1 |
2 make -f misc/GNUmakefile release | |
3 | |
4 the required tools: | |
5 *) xsltproc to build CHANGES, | |
5663
001beb963d86
Documented the switch from java XSLScript to xslscript.pl.
Ruslan Ermilov <ru@nginx.com>
parents:
5212
diff
changeset
|
6 *) xslscript.pl ( http://hg.nginx.org/xslscript ) to build XSLTs |
681 | 7 from XSLScript sources. |
8 | |
9 | |
10 make -f misc/GNUmakefile icons | |
11 | |
12 the required tool: | |
13 *) netpbm to create Win32 icons from xpm sources. |