Mercurial > hg > nginx
diff src/event/ngx_event_quic.h @ 8458:e0f92f68e018 quic
QUIC: Introduced ngx_quic_finalize_connection().
The function finalizes QUIC connection with an application protocol error
code and sends a CONNECTION_CLOSE frame with type=0x1d.
Also, renamed NGX_QUIC_FT_CONNECTION_CLOSE2 to NGX_QUIC_FT_CONNECTION_CLOSE_APP.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 02 Jul 2020 16:33:59 +0300 |
parents | a2c34e77cfc1 |
children | 3b107aadc9f6 |
line wrap: on
line diff
--- a/src/event/ngx_event_quic.h Thu Jul 02 16:33:36 2020 +0300 +++ b/src/event/ngx_event_quic.h Thu Jul 02 16:33:59 2020 +0300 @@ -103,6 +103,8 @@ void ngx_quic_run(ngx_connection_t *c, ngx_ssl_t *ssl, ngx_quic_tp_t *tp, ngx_connection_handler_pt handler); ngx_connection_t *ngx_quic_create_uni_stream(ngx_connection_t *c); +void ngx_quic_finalize_connection(ngx_connection_t *c, ngx_uint_t err, + const char *reason); /********************************* DEBUG *************************************/