annotate contrib/vim/indent/nginx.vim @ 8911:b09f055daa4e quic

QUIC: fixed handling of RETIRE_CONNECTION_ID frame. Previously, the retired socket was not closed if it didn't match active or backup. New sockets could not be created (due to count limit), since retired socket was not closed before calling ngx_quic_create_sockets(). When replacing retired socket, new socket is only requested after closing old one, to avoid hitting the limit on the number of active connection ids. Together with added restrictions, this fixes an issue when a current socket could be closed during migration, recreated and erroneously reused leading to null pointer dereference.
author Vladimir Homutov <vl@nginx.com>
date Thu, 18 Nov 2021 14:19:36 +0300
parents f38043bd15f5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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#