Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.c @ 8142:d564e8850975 quic
QUIC: reset error and error_reason prior to processing packet.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Fri, 09 Oct 2020 16:57:19 +0300 |
parents | ec04dbb77fb7 |
children | 02ee77f8d53d |
comparison
equal
deleted
inserted
replaced
8141:b95aa1cb8f98 | 8142:d564e8850975 |
---|---|
1626 pkt.len = b->last - p; | 1626 pkt.len = b->last - p; |
1627 pkt.log = c->log; | 1627 pkt.log = c->log; |
1628 pkt.flags = p[0]; | 1628 pkt.flags = p[0]; |
1629 pkt.raw->pos++; | 1629 pkt.raw->pos++; |
1630 | 1630 |
1631 if (c->quic) { | |
1632 c->quic->error = 0; | |
1633 c->quic->error_reason = 0; | |
1634 } | |
1635 | |
1631 rc = ngx_quic_process_packet(c, conf, &pkt); | 1636 rc = ngx_quic_process_packet(c, conf, &pkt); |
1632 | 1637 |
1633 #if (NGX_DEBUG) | 1638 #if (NGX_DEBUG) |
1634 if (pkt.parsed) { | 1639 if (pkt.parsed) { |
1635 ngx_quic_connection_t *qc; | 1640 ngx_quic_connection_t *qc; |