comparison src/event/ngx_event_quic.c @ 8061:0609ea17ca23 quic

QUIC: removed outdated TODOs. The logical quic connection state is tested by handler functions that process corresponding types of packets (initial/handshake/application). The packet is declined if state is incorrect. No timeout is required for the input queue.
author Vladimir Homutov <vl@nginx.com>
date Thu, 20 Aug 2020 16:45:48 +0300
parents fc89d02bdca2
children 64a484fd40a9
comparison
equal deleted inserted replaced
8060:fc89d02bdca2 8061:0609ea17ca23
1576 1576
1577 if (c->quic->in_retry) { 1577 if (c->quic->in_retry) {
1578 return ngx_quic_retry_input(c, &pkt); 1578 return ngx_quic_retry_input(c, &pkt);
1579 } 1579 }
1580 1580
1581 /* TODO: check current state */
1582 if (ngx_quic_long_pkt(pkt.flags)) { 1581 if (ngx_quic_long_pkt(pkt.flags)) {
1583 1582
1584 if (ngx_quic_pkt_in(pkt.flags)) { 1583 if (ngx_quic_pkt_in(pkt.flags)) {
1585 rc = ngx_quic_initial_input(c, &pkt); 1584 rc = ngx_quic_initial_input(c, &pkt);
1586 1585
2827 fs->total += f->length; 2826 fs->total += f->length;
2828 2827
2829 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, 2828 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
2830 "quic ordered frame with unexpected offset:" 2829 "quic ordered frame with unexpected offset:"
2831 " buffered, total %ui", fs->total); 2830 " buffered, total %ui", fs->total);
2832
2833 /* TODO: do we need some timeout for this queue ? */
2834 2831
2835 if (ngx_queue_empty(&fs->frames)) { 2832 if (ngx_queue_empty(&fs->frames)) {
2836 ngx_queue_insert_after(&fs->frames, &dst->queue); 2833 ngx_queue_insert_after(&fs->frames, &dst->queue);
2837 return NGX_OK; 2834 return NGX_OK;
2838 } 2835 }