Mercurial > hg > nginx
changeset 8425:3e38dad3a163 quic
Receipt of CONNECTION_CLOSE in 0-RTT is permitted in draft-28.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 05 Jun 2020 13:20:02 +0300 |
parents | c70446e3d771 |
children | 6ea2f1daedb5 |
files | src/event/ngx_event_quic_transport.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/ngx_event_quic_transport.c +++ b/src/event/ngx_event_quic_transport.c @@ -1069,8 +1069,13 @@ ngx_quic_frame_allowed(ngx_quic_header_t /* RETIRE_CONNECTION_ID */ 0x3, /* PATH_CHALLENGE */ 0x3, /* PATH_RESPONSE */ 0x3, +#if (NGX_QUIC_DRAFT_VERSION >= 28) + /* CONNECTION_CLOSE */ 0xF, + /* CONNECTION_CLOSE2 */ 0x3, +#else /* CONNECTION_CLOSE */ 0xD, /* CONNECTION_CLOSE2 */ 0x1, +#endif /* HANDSHAKE_DONE */ 0x0, /* only sent by server */ };