Mercurial > hg > nginx
view misc/README @ 7351:2b5528023f6b
Lingering close changed to handle NGX_AGAIN.
The "do { c->recv() } while (c->read->ready)" form used in the
ngx_http_lingering_close_handler() is not really correct, as for
example with SSL c->read->ready may be still set when returning NGX_AGAIN
due to SSL_ERROR_WANT_WRITE. Therefore the above might be an infinite loop.
This doesn't really matter in lingering close, as we shutdown write side
of the socket anyway and also disable renegotiation (and even without shutdown
and with renegotiation it requires using very large certificate chain and
tuning socket buffers to trigger SSL_ERROR_WANT_WRITE). But for the sake of
correctness added an NGX_AGAIN check.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 10 Sep 2018 18:57:13 +0300 |
parents | 001beb963d86 |
children | 985b0bda403c |
line wrap: on
line source
make -f misc/GNUmakefile release the required tools: *) xsltproc to build CHANGES, *) xslscript.pl ( http://hg.nginx.org/xslscript ) to build XSLTs from XSLScript sources. make -f misc/GNUmakefile icons the required tool: *) netpbm to create Win32 icons from xpm sources.