Mercurial > hg > nginx
diff src/event/quic/ngx_event_quic_frames.c @ 8948:19e063e955bf quic
QUIC: renamed buffer-related functions.
ngx_quic_alloc_buf() -> ngx_quic_alloc_chain(),
ngx_quic_free_bufs() -> ngx_quic_free_chain(),
ngx_quic_trim_bufs() -> ngx_quic_trim_chain()
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 16 Dec 2021 17:06:35 +0300 |
parents | 6ccf3867959a |
children | 2e22110828dd |
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_frames.c Fri Dec 24 18:17:23 2021 +0300 +++ b/src/event/quic/ngx_event_quic_frames.c Thu Dec 16 17:06:35 2021 +0300 @@ -66,7 +66,7 @@ qc = ngx_quic_get_connection(c); if (frame->data) { - ngx_quic_free_bufs(c, frame->data); + ngx_quic_free_chain(c, frame->data); } ngx_queue_insert_head(&qc->free_frames, &frame->queue); @@ -79,7 +79,7 @@ void -ngx_quic_trim_bufs(ngx_chain_t *in, size_t size) +ngx_quic_trim_chain(ngx_chain_t *in, size_t size) { size_t n; ngx_buf_t *b; @@ -99,7 +99,7 @@ void -ngx_quic_free_bufs(ngx_connection_t *c, ngx_chain_t *in) +ngx_quic_free_chain(ngx_connection_t *c, ngx_chain_t *in) { ngx_buf_t *b, *shadow; ngx_chain_t *cl; @@ -347,7 +347,7 @@ ngx_chain_t * -ngx_quic_alloc_buf(ngx_connection_t *c) +ngx_quic_alloc_chain(ngx_connection_t *c) { ngx_buf_t *b; ngx_chain_t *cl; @@ -381,7 +381,7 @@ return NULL; } - b->tag = (ngx_buf_tag_t) &ngx_quic_alloc_buf; + b->tag = (ngx_buf_tag_t) &ngx_quic_alloc_chain; cl->buf = b; @@ -407,7 +407,7 @@ ll = &out; while (len) { - cl = ngx_quic_alloc_buf(c); + cl = ngx_quic_alloc_chain(c); if (cl == NULL) { return NGX_CHAIN_ERROR; } @@ -446,7 +446,7 @@ continue; } - cl = ngx_quic_alloc_buf(c); + cl = ngx_quic_alloc_chain(c); if (cl == NULL) { return NGX_CHAIN_ERROR; } @@ -502,7 +502,7 @@ cl = *chain; if (cl == NULL) { - cl = ngx_quic_alloc_buf(c); + cl = ngx_quic_alloc_chain(c); if (cl == NULL) { return NGX_CHAIN_ERROR; }