Mercurial > hg > nginx
view contrib/vim/indent/nginx.vim @ 9238:392e8e2fd22a
Request body: explicit handling of NGX_AGAIN.
Request body reading indirectly uses the "do { c->recv() } while
(c->read->ready)" form, which is not really correct, as for example
with SSL c->read->ready may be still set when c->recv() returns NGX_AGAIN
due to SSL_ERROR_WANT_WRITE (see 7351:2b5528023f6b), and therefore this
form might be an infinite loop.
Added explicit NGX_AGAIN handling for the sake of correctness.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 30 Mar 2024 05:06:59 +0300 |
parents | f38043bd15f5 |
children |
line wrap: on
line source
if exists("b:did_indent") finish endif let b:did_indent = 1 setlocal indentexpr= " cindent actually works for nginx' simple file structure setlocal cindent " Just make sure that the comments are not reset as defs would be. setlocal cinkeys-=0#