comparison src/event/quic/ngx_event_quic_frames.h @ 9012:489c2dcb3180 quic

QUIC: trim input chain in ngx_quic_buffer_write(). This allows to eliminate explicit trimming when handling input STREAM frame. As a result, ngx_quic_trim_chain() is eliminated as well.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 14 Feb 2022 14:51:10 +0300
parents f9c788f3f5cc
children b5656025ddb5
comparison
equal deleted inserted replaced
9011:f9c788f3f5cc 9012:489c2dcb3180
24 size_t len); 24 size_t len);
25 25
26 ngx_chain_t *ngx_quic_alloc_chain(ngx_connection_t *c); 26 ngx_chain_t *ngx_quic_alloc_chain(ngx_connection_t *c);
27 ngx_chain_t *ngx_quic_copy_buf(ngx_connection_t *c, u_char *data, 27 ngx_chain_t *ngx_quic_copy_buf(ngx_connection_t *c, u_char *data,
28 size_t len); 28 size_t len);
29 void ngx_quic_trim_chain(ngx_chain_t *in, size_t size);
30 void ngx_quic_free_chain(ngx_connection_t *c, ngx_chain_t *in); 29 void ngx_quic_free_chain(ngx_connection_t *c, ngx_chain_t *in);
31 30
32 ngx_chain_t *ngx_quic_read_buffer(ngx_connection_t *c, ngx_quic_buffer_t *qb, 31 ngx_chain_t *ngx_quic_read_buffer(ngx_connection_t *c, ngx_quic_buffer_t *qb,
33 uint64_t limit); 32 uint64_t limit);
34 ngx_chain_t *ngx_quic_write_buffer(ngx_connection_t *c, ngx_quic_buffer_t *qb, 33 ngx_chain_t *ngx_quic_write_buffer(ngx_connection_t *c, ngx_quic_buffer_t *qb,