From 2ba20e3451ca5f31ad7a9811081b85d92472082c Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Thu, 13 Jan 2022 11:34:42 +0300 Subject: QUIC: return written size from ngx_quic_write_chain(). This allows to escape calculating it before calling the function. --- src/event/quic/ngx_event_quic_frames.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/event/quic/ngx_event_quic_frames.h') diff --git a/src/event/quic/ngx_event_quic_frames.h b/src/event/quic/ngx_event_quic_frames.h index 45505601f..b06575d4e 100644 --- a/src/event/quic/ngx_event_quic_frames.h +++ b/src/event/quic/ngx_event_quic_frames.h @@ -31,7 +31,7 @@ void ngx_quic_free_chain(ngx_connection_t *c, ngx_chain_t *in); ngx_chain_t *ngx_quic_read_chain(ngx_connection_t *c, ngx_chain_t **chain, off_t limit); ngx_chain_t *ngx_quic_write_chain(ngx_connection_t *c, ngx_chain_t **chain, - ngx_chain_t *in, off_t limit, off_t offset); + ngx_chain_t *in, off_t limit, off_t offset, size_t *size); #if (NGX_DEBUG) void ngx_quic_log_frame(ngx_log_t *log, ngx_quic_frame_t *f, ngx_uint_t tx); -- cgit