comparison src/http/v3/ngx_http_v3_parse.h @ 7955:72f9ff4e0a88 quic

HTTP/3: close QUIC connection with HTTP/QPACK errors when needed. Previously errors led only to closing streams. To simplify closing QUIC connection from a QUIC stream context, new macro ngx_http_v3_finalize_connection() is introduced. It calls ngx_quic_finalize_connection() for the parent connection.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 02 Jul 2020 16:47:51 +0300
parents b0e81f49d7c0
children d70a38acaea0
comparison
equal deleted inserted replaced
7954:1ed698947172 7955:72f9ff4e0a88
110 ngx_uint_t length; 110 ngx_uint_t length;
111 ngx_http_v3_parse_varlen_int_t vlint; 111 ngx_http_v3_parse_varlen_int_t vlint;
112 } ngx_http_v3_parse_data_t; 112 } ngx_http_v3_parse_data_t;
113 113
114 114
115 /*
116 * Parse functions return codes:
117 * NGX_DONE - parsing done
118 * NGX_OK - sub-element done
119 * NGX_AGAIN - more data expected
120 * NGX_BUSY - waiting for external event
121 * NGX_ERROR - internal error
122 * NGX_HTTP_V3_ERROR_XXX - HTTP/3 or QPACK error
123 */
124
115 ngx_int_t ngx_http_v3_parse_varlen_int(ngx_connection_t *c, 125 ngx_int_t ngx_http_v3_parse_varlen_int(ngx_connection_t *c,
116 ngx_http_v3_parse_varlen_int_t *st, u_char ch); 126 ngx_http_v3_parse_varlen_int_t *st, u_char ch);
117 ngx_int_t ngx_http_v3_parse_prefix_int(ngx_connection_t *c, 127 ngx_int_t ngx_http_v3_parse_prefix_int(ngx_connection_t *c,
118 ngx_http_v3_parse_prefix_int_t *st, ngx_uint_t prefix, u_char ch); 128 ngx_http_v3_parse_prefix_int_t *st, ngx_uint_t prefix, u_char ch);
119 129