Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic_transport.h @ 7862:fb7422074258 quic
Added generation of CC frames with error on connection termination.
When an error occurs, then c->quic->error field may be populated
with an appropriate error code, and the CONNECTION CLOSE frame will be
sent to the peer before the connection is closed. Otherwise, the error
treated as internal and INTERNAL_ERROR code is sent.
The pkt->error field is populated by functions processing packets to
indicate an error when it does not fit into pass/fail return status.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 14 May 2020 15:54:45 +0300 |
parents | 52d0c4832570 |
children | 81f85c479d7e |
comparison
equal
deleted
inserted
replaced
7861:52d0c4832570 | 7862:fb7422074258 |
---|---|
276 uint32_t trunc; | 276 uint32_t trunc; |
277 uint8_t flags; | 277 uint8_t flags; |
278 uint32_t version; | 278 uint32_t version; |
279 ngx_str_t token; | 279 ngx_str_t token; |
280 enum ssl_encryption_level_t level; | 280 enum ssl_encryption_level_t level; |
281 ngx_uint_t error; | |
281 | 282 |
282 /* filled in by parser */ | 283 /* filled in by parser */ |
283 ngx_buf_t *raw; /* udp datagram */ | 284 ngx_buf_t *raw; /* udp datagram */ |
284 | 285 |
285 u_char *data; /* quic packet */ | 286 u_char *data; /* quic packet */ |