# HG changeset patch # User Sergey Kandaurov # Date 1584866115 -10800 # Node ID 80d7144b1c3827a4a5e75d480d499bcff97fa484 # Parent 085fd6e68367733c70739f6c32780acbfde80a9f Closing connection on NGX_QUIC_FT_CONNECTION_CLOSE. diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -779,6 +779,7 @@ ngx_quic_payload_handler(ngx_connection_ 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_ } if (do_close) { - // TODO: handle stream close + ngx_quic_close_connection(c); + return NGX_OK; } if (ack_this == 0) {