Mercurial > hg > nginx-quic
annotate contrib/vim/indent/nginx.vim @ 7006:9552758a786e
Background subrequests for cache updates.
Previously, cache background update might not work as expected, making client
wait for it to complete before receiving the final part of a stale response.
This could happen if the response could not be sent to the client socket in one
filter chain call.
Now background cache update is done in a background subrequest. This type of
subrequest does not block any other subrequests or the main request.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 25 May 2017 15:57:59 +0300 |
parents | f38043bd15f5 |
children |
rev | line source |
---|---|
5460
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
1 if exists("b:did_indent") |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
2 finish |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
3 endif |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
4 let b:did_indent = 1 |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
5 |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
6 setlocal indentexpr= |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
7 |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
8 " cindent actually works for nginx' simple file structure |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
9 setlocal cindent |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
10 " Just make sure that the comments are not reset as defs would be. |
f38043bd15f5
Contrib: add vim scripts to contrib/ directory.
Evan Miller <emmiller@gmail.com>
parents:
diff
changeset
|
11 setlocal cinkeys-=0# |