Mercurial > hg > nginx-quic
comparison src/http/v3/ngx_http_v3.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 | 1ed698947172 |
children | 0d2b2664b41c |
comparison
equal
deleted
inserted
replaced
7954:1ed698947172 | 7955:72f9ff4e0a88 |
---|---|
77 | 77 |
78 #define ngx_http_v3_get_module_srv_conf(c, module) \ | 78 #define ngx_http_v3_get_module_srv_conf(c, module) \ |
79 ngx_http_get_module_srv_conf( \ | 79 ngx_http_get_module_srv_conf( \ |
80 ((ngx_http_v3_connection_t *) c->qs->parent->data)->hc.conf_ctx, \ | 80 ((ngx_http_v3_connection_t *) c->qs->parent->data)->hc.conf_ctx, \ |
81 module) | 81 module) |
82 | |
83 #define ngx_http_v3_finalize_connection(c, code, reason) \ | |
84 ngx_quic_finalize_connection(c->qs->parent, code, reason) | |
82 | 85 |
83 | 86 |
84 typedef struct { | 87 typedef struct { |
85 ngx_quic_tp_t quic; | 88 ngx_quic_tp_t quic; |
86 size_t max_field_size; | 89 size_t max_field_size; |