Mercurial > hg > nginx-quic
comparison src/event/quic/ngx_event_quic_output.c @ 8761: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 | e72db9162180 |
children | 1e2f4e9c8195 |
comparison
equal
deleted
inserted
replaced
8760:6ccf3867959a | 8761:19e063e955bf |
---|---|
1119 ctx->ranges[i].range); | 1119 ctx->ranges[i].range); |
1120 | 1120 |
1121 left = b ? b->end - b->last : 0; | 1121 left = b ? b->end - b->last : 0; |
1122 | 1122 |
1123 if (left < len) { | 1123 if (left < len) { |
1124 cl = ngx_quic_alloc_buf(c); | 1124 cl = ngx_quic_alloc_chain(c); |
1125 if (cl == NULL) { | 1125 if (cl == NULL) { |
1126 return NGX_ERROR; | 1126 return NGX_ERROR; |
1127 } | 1127 } |
1128 | 1128 |
1129 *ll = cl; | 1129 *ll = cl; |