Mercurial > hg > nginx
diff src/event/quic/ngx_event_quic_ssl.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 | 3789f4a56d65 |
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_ssl.c +++ b/src/event/quic/ngx_event_quic_ssl.c @@ -379,13 +379,13 @@ ngx_quic_handle_crypto_frame(ngx_connect return NGX_OK; } - ngx_quic_trim_bufs(frame->data, ctx->crypto_received - f->offset); + ngx_quic_trim_chain(frame->data, ctx->crypto_received - f->offset); if (ngx_quic_crypto_input(c, frame->data) != NGX_OK) { return NGX_ERROR; } - ngx_quic_trim_bufs(ctx->crypto, last - ctx->crypto_received); + ngx_quic_trim_chain(ctx->crypto, last - ctx->crypto_received); ctx->crypto_received = last; cl = ctx->crypto; @@ -413,7 +413,7 @@ ngx_quic_handle_crypto_frame(ngx_connect return NGX_ERROR; } - ngx_quic_free_bufs(c, cl); + ngx_quic_free_chain(c, cl); } return NGX_OK;