diff src/event/quic/ngx_event_quic_ssl.c @ 8967:3789f4a56d65 quic

QUIC: return written size from ngx_quic_write_chain(). This allows to escape calculating it before calling the function.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 13 Jan 2022 11:34:42 +0300
parents 19e063e955bf
children 1e2f4e9c8195
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_ssl.c
+++ b/src/event/quic/ngx_event_quic_ssl.c
@@ -370,7 +370,7 @@ ngx_quic_handle_crypto_frame(ngx_connect
 
     if (f->offset > ctx->crypto_received) {
         if (ngx_quic_write_chain(c, &ctx->crypto, frame->data, f->length,
-                                 f->offset - ctx->crypto_received)
+                                 f->offset - ctx->crypto_received, NULL)
             == NGX_CHAIN_ERROR)
         {
             return NGX_ERROR;