comparison 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
comparison
equal deleted inserted replaced
8966:6f8253673669 8967:3789f4a56d65
368 return NGX_OK; 368 return NGX_OK;
369 } 369 }
370 370
371 if (f->offset > ctx->crypto_received) { 371 if (f->offset > ctx->crypto_received) {
372 if (ngx_quic_write_chain(c, &ctx->crypto, frame->data, f->length, 372 if (ngx_quic_write_chain(c, &ctx->crypto, frame->data, f->length,
373 f->offset - ctx->crypto_received) 373 f->offset - ctx->crypto_received, NULL)
374 == NGX_CHAIN_ERROR) 374 == NGX_CHAIN_ERROR)
375 { 375 {
376 return NGX_ERROR; 376 return NGX_ERROR;
377 } 377 }
378 378