comparison src/event/ngx_event_quic.h @ 7953: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
comparison
equal deleted inserted replaced
7952:a7f64438aa3c 7953:e0f92f68e018
101 101
102 102
103 void ngx_quic_run(ngx_connection_t *c, ngx_ssl_t *ssl, ngx_quic_tp_t *tp, 103 void ngx_quic_run(ngx_connection_t *c, ngx_ssl_t *ssl, ngx_quic_tp_t *tp,
104 ngx_connection_handler_pt handler); 104 ngx_connection_handler_pt handler);
105 ngx_connection_t *ngx_quic_create_uni_stream(ngx_connection_t *c); 105 ngx_connection_t *ngx_quic_create_uni_stream(ngx_connection_t *c);
106 void ngx_quic_finalize_connection(ngx_connection_t *c, ngx_uint_t err,
107 const char *reason);
106 108
107 109
108 /********************************* DEBUG *************************************/ 110 /********************************* DEBUG *************************************/
109 111
110 /* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */ 112 /* #define NGX_QUIC_DEBUG_PACKETS */ /* dump packet contents */