From: Sergey Kandaurov Date: Sun, 22 Mar 2020 08:35:15 +0000 (+0300) Subject: Closing connection on NGX_QUIC_FT_CONNECTION_CLOSE. X-Git-Tag: release-1.25.0~4^2~851 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=ccb0049e3f23bee4946be3e2a930282a1d0f4e4b;p=nginx.git Closing connection on NGX_QUIC_FT_CONNECTION_CLOSE. --- diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index 307129595..f30bd6a97 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -779,6 +779,7 @@ ngx_quic_payload_handler(ngx_connection_t *c, ngx_quic_header_t *pkt) break; case NGX_QUIC_FT_CONNECTION_CLOSE: + case NGX_QUIC_FT_CONNECTION_CLOSE2: do_close = 1; break; @@ -839,7 +840,8 @@ ngx_quic_payload_handler(ngx_connection_t *c, ngx_quic_header_t *pkt) } if (do_close) { - // TODO: handle stream close + ngx_quic_close_connection(c); + return NGX_OK; } if (ack_this == 0) {