Mercurial > hg > nginx-quic
comparison src/event/quic/ngx_event_quic.c @ 8856:f9c788f3f5cc quic
QUIC: ngx_quic_buffer_t object.
The object is used instead of ngx_chain_t pointer for buffer operations like
ngx_quic_write_chain() and ngx_quic_read_chain(). These functions are renamed
to ngx_quic_write_buffer() and ngx_quic_read_buffer().
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 14 Feb 2022 15:27:59 +0300 |
parents | a5aebd51e4c7 |
children | a2fbae359828 |
comparison
equal
deleted
inserted
replaced
8855:a5aebd51e4c7 | 8856:f9c788f3f5cc |
---|---|
1075 | 1075 |
1076 qc->pto_count = 0; | 1076 qc->pto_count = 0; |
1077 | 1077 |
1078 ctx = ngx_quic_get_send_ctx(qc, level); | 1078 ctx = ngx_quic_get_send_ctx(qc, level); |
1079 | 1079 |
1080 ngx_quic_free_chain(c, ctx->crypto); | 1080 ngx_quic_free_buffer(c, &ctx->crypto); |
1081 | 1081 |
1082 while (!ngx_queue_empty(&ctx->sent)) { | 1082 while (!ngx_queue_empty(&ctx->sent)) { |
1083 q = ngx_queue_head(&ctx->sent); | 1083 q = ngx_queue_head(&ctx->sent); |
1084 ngx_queue_remove(q); | 1084 ngx_queue_remove(q); |
1085 | 1085 |