comparison src/event/quic/ngx_event_quic_output.c @ 9193:ce1ff81e9b92

QUIC: ngx_quic_frame_t time fields cleanup. The field "first" is removed. It's unused since 909b989ec088. The field "last" is renamed to "send_time". It holds frame send time.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 30 Nov 2023 15:03:06 +0400
parents efcdaa66df2e
children
comparison
equal deleted inserted replaced
9192:efcdaa66df2e 9193:ce1ff81e9b92
584 if (f->need_ack) { 584 if (f->need_ack) {
585 pkt.need_ack = 1; 585 pkt.need_ack = 1;
586 } 586 }
587 587
588 f->pnum = ctx->pnum; 588 f->pnum = ctx->pnum;
589 f->first = now; 589 f->send_time = now;
590 f->last = now;
591 f->plen = 0; 590 f->plen = 0;
592 591
593 ngx_quic_log_frame(c->log, f, 1); 592 ngx_quic_log_frame(c->log, f, 1);
594 593
595 flen = ngx_quic_create_frame(p, f); 594 flen = ngx_quic_create_frame(p, f);
1263 ngx_quic_free_frame(c, frame); 1262 ngx_quic_free_frame(c, frame);
1264 return NGX_ERROR; 1263 return NGX_ERROR;
1265 } 1264 }
1266 1265
1267 frame->pnum = ctx->pnum; 1266 frame->pnum = ctx->pnum;
1268 frame->first = now; 1267 frame->send_time = now;
1269 frame->last = now;
1270 frame->plen = res.len; 1268 frame->plen = res.len;
1271 1269
1272 ctx->pnum++; 1270 ctx->pnum++;
1273 1271
1274 sent = ngx_quic_send(c, res.data, res.len, path->sockaddr, path->socklen); 1272 sent = ngx_quic_send(c, res.data, res.len, path->sockaddr, path->socklen);