From: Sergey Kandaurov Date: Fri, 5 Jun 2020 10:20:02 +0000 (+0300) Subject: Receipt of CONNECTION_CLOSE in 0-RTT is permitted in draft-28. X-Git-Tag: release-1.25.0~4^2~684 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/%7B@url%7D?a=commitdiff_plain;h=ac73dffb57ce7fa398c8b5501e177c69c34bad75;p=nginx.git Receipt of CONNECTION_CLOSE in 0-RTT is permitted in draft-28. --- diff --git a/src/event/ngx_event_quic_transport.c b/src/event/ngx_event_quic_transport.c index 32fcb5a66..712fbf5bc 100644 --- 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 *pkt, ngx_uint_t frame_type) /* 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 */ };